Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

Dialog.SetDefaultButton

Sets the title for the default button.

Component: Dialog
Version: 4.1
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: 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


Dialog.SetButtons   -   Dialog.SetFieldText

Feedback: Report problem or ask question.




Links
MBS REAL studio tutorial videos - Nachhilfe in Kell