|
Displays a message box with an icon and a user defined caption.
This implements Window's MessageBoxEx API function.
Syntax: MESSAGEDLG(string-expression, msgType, msgButtons, helpContext)
IF MessageDlg("Close this form?", mtWarning, mbYes OR mbNo, 0) = mrNo THEN
'-- Don't close form
END IF
Details:
msgType is used to display the type of icon that will be displayed
in your message box.
0 = mtWarning 3 = mtConfirmation
1 = mtError 4 = mtCustom
2 = mtInformation
msgButtons is used to display custom dialog buttons. To display more than one message button,
just OR them.
1 = mbYes 32 = mbAbort
2 = mbNo 64 = mbRetry
4 = mbOK 128 = mbIgnore
8 = mbCancel 256 = mbAll
16 = mbHelp
helpContext is ignored for now.
|