Link Search Menu Expand Document

ProgressBar.Popup Method

Explanation The progress bar will pop up in a separate window.
Only ProgressBar objects created with the Create method can be used.
Call format pb.Popup( [ UseCancel [, UseMessage ] ] )
Return value None
Arguments boolean UseCancel If $TRUE is specified, a cancel button will be displayed.
Use the IsPopup method to check if it was canceled.
boolean UseMessage If $TRUE is specified, the message string specified by the Message property will be displayed.
Added since Ver.5.0.0
Exception None
Example of use
    var pb = ProgressBar.Create();
    pb.Width = 200;
    pb.Height = 20;
    pb.Step = 10;
    pb.Title = "Loading";
    pb.Popup($TRUE);
    for (var i = 0; i < 10; i++) {
        ...
        if (!pb.IsPopup()) {
            break;
        }
        pb.StepIt();
    }
    pb.PopupClose();
    
Related item Message property
Create, IsPopup methods