Definition: |
include pGUI.e
IupMessage(nullable_string title=NULL, nullable_string msg=NULL, sequence data={}) |
Description: | Shows a modal dialog containing a message with an OK button. |
Comments: |
If title is null it defaults to "Error". If msg is null then a window with just the title and an OK button is displayed. If data is a non-empty sequence then msg=sprintf(msg,data) is performed before the message is shown.
Uses global attributes "PARENTDIALOG" and "ICON" (but not on Windows as MessageBox does not have an icon in the title bar) if defined. There is no need for a separate IupMessagef function, since that functionality is covered by the optional data parameter - simply delete the trailing f. |
Example: |
include pGUI.e IupOpen() IupMessage("Oops","It went wrong.") IupClose() |
See Also: | IupClose, IupMainLoop |