Indigo Rose Software
  #1  
Old 09-22-2003
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
Grin Using the Status Dialog Window

Using the Status Dialog Window

Using the Status Dialog Window

Document ID: IR10003
The information in this article applies to:
  • AutoPlay Media Studio 5.0 Professional Edition

SUMMARY

This article describes how to use the Status Dialog Window.

DISCUSSION

In AutoPlay Media Studio 5.0, 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:
    --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

The above code when run will count to 20,000, and display a status dialog showing the progress of the loop.

MORE INFORMATION

For more information please see the following topics in the AutoPlay MediaStudio 5.0 help file:

  • Program Reference | Actions | StatusDlg

KEYWORDS: AutoPlay Media Studio 5.0, Actions, Status, Progress, Meter, Count


Last reviewed: September 24, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software