Syntax
| system.dialog(Title, Text, Buttons, DefaultButton, Icon, Mode, setForeground, topMost, RightReading) |
Parameters
| STRING | Title | Title of the dialog box.
| | STRING | Text | Text to be displayed in the dialog box.
| | INT | Buttons | 0: Ok 1: Ok, Cancel 2: Retry, Cancel 3: Yes, No 4: Yes, No, Cancel 5: Cancel, Retry, Ignore
| | INT | DefaultButton | Optional. 1: First button is default 2: Second button is default 3: Third button is default
| | INT | Icon | Optional. 1: Exclamation 2: Question 3: Information 4: Warning 5: Asterisk 6: Stop 7: Error 8: Hand
| | INT | Mode | Optional. 1: Application Modal 2: System Modal 3: Task Modal.
| | BOOL | setForeground | Optional. If set to true, set the dialog box as foreground window.
| | BOOL | topMost | Optional. If set to true, the dialog box is on top of the windows.
| | BOOL | RightReading | Optional. If set to true, the dialog box is drawn for right reading. |
Return value
Description
Shows a dialog box using the Windows APIs.
The button chosen by the user is returned by the function. |
MioScript Sample Code
&choice = system.dialog("Hello", "Please click a button", 4) |
|