n = Pm.MessageBox(sTitle, sText, nStyle)
|sTitle||(String) String displayed in the message box title|
|nStyle||[optional] (Long) Bit attributes definig window type and content. |
It is possible to enter the following styles or their combinations as a sum:
&H0 (default) - 0x0 - Display only the OK button
&H1 - 0x1 - Display the OK and Cancel buttons
&H2 - 0x2 - Display the ABORT, RETRY and IGNORE buttons
&H3 - 0x3 - Display the YES, NO and Cancel buttons
&H4 - 0x4 - Display the YES and NO buttons
&H5 - 0x5 - Display the RETRY and Cancel buttons
&H10 - 0x10 - Display the "Critical Message" icon
&H20 - 0x20 - Display the "Warning Query" icon
&H30 - 0x30 - Display the "Warning Message" icon
&H40 - 0x40 - Display the "Information Message" icon
&H0 - 0x0 - The first button is the default
&H100 - 0x100 - The second button is the default
&H200 - 0x200 - The third button is the default
&H300 - 0x300 - The fourth button is the default
&H0 - 0x0 - Application modal mode. If the user wants to continue in the current application activities, then he must respond to the message box.
&H10000 - 0x10000 - System modal mode. All applications are suspended until the user responds to the message box.
&H10000000 - 0x10000000 - The window will be "Always on top" over normal windows.
var sText = "I must do at home:";
sText += "\n 1) Wash the dishes";
sText += "\n 2) Clean up";
if (1 == Pm.MessageBox("Title", sText, 0x10000000))
//If the OK button has been pressed...