<< Click to Display Table of Contents >> Navigation: Explain™ Control Language > Library Routines > Input and Output functions > MessageBox() |
Create, display, and operate a message box.
The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons.
REGULAR FUNCTION
Result = MessageBox (Title, Message, Style)
Title |
STRING |
Text to be displayed in Title bar of the message box. |
Message |
STRING |
Text to be displayed in the body of the message box. |
Style |
BITS |
Combination of styles to define the look and function of the message box: •0x00000000 = MB_OK •0x00000001 = MB_OKCANCEL •0x00000003 = MB_YESNOCANCEL •0x00000004 = MB_YESNO •0x00000010 = MB_ICONHAND •0x00000020 = MB_ICONQUESTION •0x00000030 = MB_ICONEXCLAMATION •0x00000040 = MB_ICONASTERISK •0x00000030 = MB_ICONWARNING •0x00000010 = MB_ICONERROR •0x00000040 = MB_ICONINFORMATION •0x00000010 = MB_ICONSTOP •0x00000000 = MB_DEFBUTTON1 •0x00000100 = MB_DEFBUTTON2 •0x00000200 = MB_DEFBUTTON3 •0x00000300 = MB_DEFBUTTON4 |
Result |
REAL |
Result of the calculation: •1 = IDOK •2 = IDCANCEL •3 = IDABORT •4 = IDRETRY •5 = IDIGNORE •6 = IDYES •7 = IDNO |