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: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

Dialog.SetDefaultButton

Sets the title for the default button.

Component Version macOS Windows Linux Server iOS SDK
Dialog 4.1 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Dialog.SetDefaultButton"; text { ; NoDefault } )   More

Parameters

Parameter Description Example Flags
text The new default button text. "OK"
NoDefault Whether to not have a default button.
Pass 1 to have no default button, so return key will not close dialog.
Default value here is 0 for allowing enter.
(Mac only)
0 Optional

Result

Returns OK or error.

Description

Sets the title for the default button.
When an empty string, a default localized button title ("OK” in English) is used.

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 27th October 2017


Dialog.SetButtons - Dialog.SetFieldText

Feedback: Report problem or ask question.