Created
April 19, 2012 07:58
-
-
Save mhenrixon/2419504 to your computer and use it in GitHub Desktop.
Jeeves JML progressbar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oPrgBar := Application.CreateProgressDlg('Some message to display',5); | |
If oPrgBar <> '' then begin | |
//Display progress bar | |
oPrgBar.SetStyle(0); //0 = straight, 1 = Circular | |
oPrgBar.SetCancelButton(false); //Disable cancel | |
oPrgBar.show; | |
oPrgBar.IncCount; //Display incremention | |
sleep(1000); | |
oPrgBar.IncCount; //Display incremention | |
sleep(1000); | |
oPrgBar.IncCount; //Display incremention | |
sleep(1000); | |
//Close progress bar | |
oPrgBar.close; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment