UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | WinShell Verbs > winShell.msgBox

winShell.msgBox

Syntax winShell.msgBox (message, buttonsNum, title)

Params message is the text to display in the dialog box.

buttonsNum is the added together sum of these styles:

0 Display OK button only.

1 Display OK and Cancel buttons.

2 Display Abort, Retry, and Ignore buttons.

3 Display Yes, No, and Cancel buttons.

4 Display Yes and No buttons.

5 Display Retry and Cancel buttons.

16 Display Critical Message icon.

32 Display Warning Query icon.

48 Display Warning Message icon.

64 Display Information Message icon.

0 First button is default.

256 Second button is default.

512 Third button is default.

768 Fourth button is default.

0 Application modal; the user must respond to the message box before continuing work in the current application.

4096 System modal; all applications are suspended until the user responds to the message box.

title is the title of the dialog box.

Action Displays a VBScript dialog box with the specified message, style, and title.

Returns The number of the button hit. Possible values are:

1 OK

2 Cancel

3 Abort

4 Retry

5 Ignore

6 Yes

7 No

Examples winShell.msgBox ("Hello Frontier!", 2 + 48 + 512, "UserLand Frontier")

   » "4"

(The Retry button was clicked.)

Notes This verb is Windows specific; it's implement by a VBScript script.

Frontier provides many other built-in "dialog verbs".

This verb requires that the Microsoft Script Control is installed.

This verb is new in Frontier 6.0.

Prev | Next | WinShell Verbs > winShell.msgBox

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X