You will need AutoPlay Media Studio 7.5 in order to use this example.
With the release of AutoPlay Media Studio 7.5 I thought I would create a quick example that shows how dialogs work, and one possible way to use them in order to show custom progress during a File.Copy() operation. This example will copy the contents of the the project's “AutoPlay\Buttons” folder into the project's “AutoPlay\Audio” folder.
The majority of the work happens during the CopyFile dialog's “On Show” event. There the example uses the File.Copy() callback function to control the progress bar and set the name of the file that is currently being copied.
The dialog is shown when the button is clicked using the DialogEx.Show() action and closed after all the files have been copied using the DialogEx.Close() action.
Again this is a simple example, and not much different then the progress provided by AutoPlay Media Studio's Status Dialog. But if you've ever wanted to customize the Status Dialog before, with AutoPlay Media Studio 7.5 and custom dialogs you can.
Important Note: When you preview this example the following files will be copied from the project's “AutoPlay\Buttons” folder into the project's “AutoPlay\Audio” folder:
green_pill.btn
grey_pill.btn
grey_rounded.btn
orange_pill.btn
red_pill.btn
No other changes will be made to any files on your system.

Reply With Quote
