fgl_winmessage()
Displays an interactive message box containing text and OK button.
Syntax
fgl_winmessage(
title STRING,
text STRING,
icon STRING )
- title defines message box title.
- text is the text displayed in the message box. Use '\n' to separate lines.
- icon is the name of the icon to be displayed.
Usage
The fgl_winmessage()
function displays a message box to the end user.
Important: With front-ends implementing this function with the system dialog box
API creating a modal window, the end user will have to close the modal window first,
before continuing within the window of another program. Consider using a menu with "dialog" style instead, to not block other
programs.
Supported names for the icon parameter are:
information
, exclamation
, question
,
stop
. Note that on some front-ends such as iOS devices, the native
message popup window does not display an image.
On front-ends using a system dialog box API, the OK buttons will be automatically localized base on the operating system language settings. On other front-ends, the option buttons will be decorated depending on action default settings.
Example
IMPORT FGL fgldialog
MAIN
CALL fgl_winmessage( "Title", "This is a critical message.", "stop")
END MAIN