| There are a number of dialog predicates which display standard modal
dialogs (a modal dialog disables all other windows of the application). There is the
more general messageBox/4 predicate and there are a number of
predefined dialogs which require less parameters, for instance: errorBox/1.
|
messageBox(Text, Title, Style, Output)
| func | This predicate displays a modal message dialog with the specified text and title. Which buttons appear on the dialog is determined by the Style parameter. |
| pre | The variable Text and Title must contain string values and the Style variable must contain one of the predefined values: ok, okCancel, retryCancel, yesNo or yesNoCancel. |
| post | The button that was pressed is assigned to Output, Output contains one of the following values; ok, cancel, yes, no or retry. |
messageBox(Text, Style, Output)
| func | This predicate displays a modal message dialog with the specified text, the title of the dialog is the name of the application. Which buttons appear on the dialog is determined by the Style parameter. |
| pre | The variable Text must contain a string and the Style variable must contain one of the predefined values: ok, okCancel, retryCancel, yesNo or yesNoCancel. |
| post | The button that was pressed is assigned to Output, Output contains one of the following values; ok, cancel, yes, no or retry. |
| func | This predicate displays a modal dialog with the specified text, a question icon is also displayed, the title of the dialog is the name of the application, the dialog contains an "OK" and a "Cancel" button. |
| pre | The variable Text must contain a string. |
| post | The button that was pressed is assigned to Output, Output contains one of the following values; ok or cancel. |
| func | This predicate displays a modal dialog with the specified text, an error icon is also displayed, the title of the dialog is the name of the application, the dialog contains an "OK" button. |
| pre | The variable Text must contain a string. |
| post | The button that was pressed is assigned to Output, Output contains the value ok. |
| func | This predicate displays a modal dialog with the specified text, an error icon is also displayed, the title of the dialog is the name of the application, the dialog contains an "OK" button. |
| pre | The variable Text must contain a string. |
| post | TRUE |
| func | This predicate displays a modal dialog with the specified text, an information icon is also displayed, the title of the dialog is the name of the application, the dialog contains an "OK" button. |
| pre | The variable Text must contain a string. |
| post | The button that was pressed is assigned to Output, Output contains the value ok. |
| func | This predicate displays a modal dialog with the specified text, an information icon is also displayed, the title of the dialog is the name of the application, the dialog contains an "OK" button. |
| pre | The variable Text must contain a string. |
| post | TRUE |
| func | This predicate displays a modal dialog with the specified text, a notification icon is also displayed, the title of the dialog is the name of the application, the dialog contains an "OK" button. |
| pre | The variable Text must contain a string. |
| post | The button that was pressed is assigned to Output, Output contains the value ok. |
| func | This predicate displays a modal dialog with the specified text, a notification icon is also displayed, the title of the dialog is the name of the application, the dialog contains an "OK" button. |
| pre | The variable Text must contain a string. |
| post | TRUE |