Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

Dialog.SetDefaultButton

Sets the title for the default button.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Dialog 4.1 Yes Yes No No No

MBS( "Dialog.SetDefaultButton"; text { ; NoDefault } )

Parameters

Parameter Description Example value
text The new default button text. "OK"
NoDefault Optional
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

Result

Returns OK or error.

Description

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

See also

Example Databases


Dialog.SetButtons   -   Dialog.SetFieldText

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins