GtkMessageDialog Class

The GtkMessageDialog class is the class for message box dialogs.

This class subclasses the Object REXX Object class so all of its methods are also available to this class.

The class heirarchy


   Object
      +---GtkMessageDialog

The methods for the GtkMessageDialog class are documented below.

GtkMessageDialog Method Table of Contents

new - Create and initialize the dialog widget
run - Run the dialog widget


Method: new

This method creates and initializes the dialog widget.

Example

This is a example of how to create a message dialog widget.


parent = 0
boxtype = 'GTK_MESSAGE_INFO'
buttons = 'GTK_BUTTONS_OK'
message = 'This is my message'
mymsgdialog = .GtkMessageDialog~new(parent, boxtype, buttons, message)

Method Parameters

parent
The parent window pointer. This will usually be zero (for the desktop).
boxtype
The message box type. This must be one of the following strings.

GTK_MESSAGE_INFO
GTK_MESSAGE_WARNING
GTK_MESSAGE_QUESTION
GTK_MESSAGE_ERROR

buttons
The list of buttons. This must be one of the following strings.

GTK_BUTTONS_NONE
GTK_BUTTONS_OK
GTK_BUTTONS_CLOSE
GTK_BUTTONS_CANCEL
GTK_BUTTONS_YES_NO
GTK_BUTTONS_OK_CANCEL

message
The text of the message.

Method Results

The new GtkMessageDialog object.




Method: run

This method runs the message dialog.

Example

This is a example of how to run a message dialog.


mymsgdialog~run()

Method Parameters

None.

Method Results

A result string. It will be one of the following strings.

GTK_RESPONSE_NONE
GTK_RESPONSE_REJECT
GTK_RESPONSE_ACCEPT
GTK_RESPONSE_DELETE_EVENT
GTK_RESPONSE_OK
GTK_RESPONSE_CANCEL
GTK_RESPONSE_CLOSE
GTK_RESPONSE_YES
GTK_RESPONSE_NO
GTK_RESPONSE_APPLY
GTK_RESPONSE_HELP




Valid XHTML 1.0!