|
#1
|
||||
|
||||
|
Using the Status Dialog Window
In AutoPlay Media Studio, it is possible to display a status dialog window to your user using built in actions. This is useful if, for example, your application uses a loop that takes quite a bit of time to complete.
As an example, we will create a loop that counts to 20,000, and display a status window letting the user know the status of the count: 1. Create a button object, and add the following code to its On Click event: Code:
--set the minimum and maximum values
minimum_value = 0;
maximum_value = 20000;
--Status dialog window settings
--show the status dialog window
StatusDlg.Show();
--set the title
StatusDlg.SetTitle("Counting from " .. minimum_value .. " to " .. maximum_value);
--set the range of the meter
StatusDlg.SetMeterRange(minimum_value, maximum_value);
--counting loop
--set the loop control variable
loop_control = minimum_value;
--while the loop control variable is less than or equal to the maximum value
while loop_control <= maximum_value do
--set the meter position to the loop control variable
StatusDlg.SetMeterPos(loop_control);
--set the status text to reflect the current number
StatusDlg.SetStatusText("Currently Counting . . . (" .. loop_control .. " of " .. maximum_value .. ")");
--increment the loop control variable
loop_control = loop_control + 1;
end
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change title in Status dialog | mangomel | AutoPlay Media Studio 6.0 | 3 | 09-21-2006 02:23 AM |
| Status Dialog text disappears | Lizard | Setup Factory 7.0 Discussion | 4 | 09-20-2006 12:15 PM |
| Dialog window appears indicating Software about to be installed already running... | Mat | AutoPlay Media Studio 5.0 | 0 | 03-22-2004 04:27 AM |
| Using the Status Dialog Window | Desmond | AutoPlay Media Studio 5.0 Examples | 0 | 09-22-2003 03:52 PM |
All times are GMT -6. The time now is 07:36 PM.








Linear Mode

