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


Sets a timeout for the dialog in seconds.

Component: Dialog
Version: 5.2
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "Dialog.SetTimeout"; Value )


Parameter Description Example value
Value The new timeout value in seconds. 30


Returns OK or error.


Sets a timeout for the dialog in seconds.
If a timeout is set the plugin will run a timer to close the window after a given time period.
The result of the dialog will be "Abort" and your scripts can continue.


Run a dialog with timeout:

Set Variable [$r; Value:MBS("Dialog.Reset")]
Set Variable [$r; Value:MBS("Dialog.SetIcon"; Dialog::Icon)]
Set Variable [$r; Value:MBS("Dialog.SetInformativeText"; Dialog::InformativeText)]
Set Variable [$r; Value:MBS("Dialog.SetMessage"; Dialog::Message)]
Set Variable [$r; Value:MBS("Dialog.SetMode"; "Warning")]
Set Variable [$r; Value:MBS("Dialog.SetWindowTitle"; Dialog::WindowTitle)]
Set Variable [$r; Value:MBS("Dialog.SetTimeout"; 20)]
Set Variable [$result; Value:MBS("Dialog.Run")]
Set Field [Dialog::Result; $result]

See also

Dialog.SetSuppressionButtonTitle   -   Dialog.SetWindowTitle

Feedback: Report problem or ask question.

MBS REALbasic Plugins - Nachhilfe in Andernach