Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Sets the current progress value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
ProgressDialog | 2.4 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example |
---|---|---|
value | New value. Range from 0 to 100 for a normal progress bar or negative value for indeterminated progress bar. | 50 |
Returns "OK" on success.
Set progress bar to indeterminate while preparing operations:
MBS( "ProgressDialog.SetProgress"; -1 )
Set later progress bar to current value:
MBS( "ProgressDialog.SetProgress"; $index * 100 / $total )
Update only when changed by one percent:
Set Variable [$percent; Value:Round(100 * $current / $total; 0)]
If [$percent ≠ $lastpercent]
Set Variable [$lastpercent; Value:$percent]
Set Variable [$r; Value:MBS( "ProgressDialog.SetProgress"; $percent )]
End If
Created 18th August 2014, last changed 17th January 2016
ProgressDialog.SetPositionCentered - ProgressDialog.SetShowButton
Feedback: Report problem or ask question.