MESSAGEBOX |
Top Previous Next |
Syntax INT = MESSAGEBOX(win as POINTER,text as STRING,caption as STRING,OPT flags as UINT) Description Displays a standard message box. Parameters win - Window or dialog to use as the parent, can be NULL. text - Text to display in the body. caption - Title bar caption text. flags - Optional. Style of the message box. Return value Return based on style of the message box. Remarks Flags are a combination of a message box type and an icon identifier or'ed together. Default is @MB_OK. Message box types: @MB_OK - One button "OK", no return value. @MB_OKCANCEL - Two buttons, "OK" and "CANCEL". @MB_ABORTRETRYIGNORE - Three buttons "ABORT", "RETRY", and "IGNORE" @MB_YESNOCANCEL - Three buttons "YES", "NO", and "CANCEL" @MB_YESNO - Two buttons "YES" and "NO" @MB_RETRYCANCEL - Two buttons "RETRY" and "CANCEL" @MB_CANCELTRYCONTINUE- Three buttons "CANCEL", "TRY AGAIN", and "CONTINUE" Icon identifiers: @MB_ICONEXCLAMATION @MB_ICONINFORMATION @MB_ICONQUESTION @MB_ICONSTOP Return values: @IDOK @IDCANCEL @IDABORT @IDRETRY @IDIGNORE @IDYES @IDNO @IDTRYAGAIN @IDCONTINUE Example usage IF MESSAGEBOX(mywnd,"Can't read file","error",@MB_ICONSTOP | @MB_RETRYCANCEL) = @IDRETRY |