Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Set position of the dialog centered.

Component Version macOS Windows Linux Server iOS SDK
ProgressDialog 2.4 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "ProgressDialog.SetPositionCentered" { ; X; Y } )   More


Parameter Description Example Flags
X Optional, Relative x coordinate. 0 Optional
Y Optional, Relative y coordinate. 0 Optional


Returns "OK" on success.


Set position of the dialog centered.
With X and Y you can move the dialog relative to the center of the main screen. Use functions like Screen.Height to learn about screen height.


Center dialog:

MBS( "ProgressDialog.SetPositionCentered" )

Center dialog a little bit lower on screen:

MBS( "ProgressDialog.SetPositionCentered"; 0; 200 )

See also

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014

ProgressDialog.SetPosition - ProgressDialog.SetPositionWindowCentered