showProgressBar()
The function updates the status bar of a process.
Synopsis
void showProgressBar(string text1, string text2, string text3, float
percent);
Parameters
Parameter | Description |
---|---|
text1 | Text of the first line in module (with empty string, the text defined in openProgressBar()) |
text2 | Text of the second line (with empty string, the text defined in openProgressBar()) |
text3 | Text of the last line in the module (z.B. Information which File is copied - overwrites the text defined in openProgressBar()) |
percent | Gives how many percent of the process are ready. |
Return value
None
Errors
Description
The function displays a dialog, for informing the user during a longer process about the status. The dialog is similar to according dialogs under windows. The function updates the status bar of the dialog. The status is updated every 2 seconds, you may trigger more quickly, but the performance of the computer decreases. Only with all strings ("no empty" strings) the dialog is updated. With a percent value -1 no update will be performed.
Example
The following script displays a module with the copy icon, special text, and normal slider with percent:
main()
{
openProgressBar("My PanelHead", "copy.gif", "Copying", "still
copying", " Be patient!", 2);
showProgressBar("", "", "275 Files of 1000", 27.5);
delay(60);
closeProgressBar();
}
Assignment
Dialog functions
Availability
UI