Skip to content

Instantly share code, notes, and snippets.

@mhenrixon
Created April 19, 2012 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhenrixon/2419504 to your computer and use it in GitHub Desktop.
Save mhenrixon/2419504 to your computer and use it in GitHub Desktop.
Jeeves JML progressbar
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