MSGDIALOG

MSGDIALOG("text", xsize, ysize, type, buttons)
Type: function
Creates a dialog with a text, and a width of <xsize> and a height of <ysize>. Returns the ID of the created dialog.
The type of dialog can be one of the following: 0 - informational, 1 - warning, 2 - question, - 3 - error and 4 - other.
The buttons can have the following values: 0 - no button, 1 - ok button, 2 - close, 3 - cancel, 4 - yes/no, and 5 - ok/cancel.
By default the dialog will be hidden. Use the SHOW function to make it visible.
The text may contain Pango Text Attribute Markup Language to set different styles and formats.
The dialog can be connected to a callback function which should have two arguments, the first for the dialog and the second for the button. For example:
INCLUDE "hug.bac"
SUB HandleError(NUMBER dialog, int button) 
    HIDE(dialog) 
    IF button = GTK_RESPONSE_YES THEN 
        <...your code here...>
    END IF 
END SUB
ErrDlg = MSGDIALOG("Error", 300, 200, 3, 4) 
CALLBACK(ErrDlg, HandleError)
For a full list of dialog response codes, please refer to the Appendix.
