Forum und email

GtkMessageDialog

A convenient message window.

オブジェクトの階層

GObject
`-- GtkObject
       `-- GtkWidget
              `-- GtkContainer
                     `-- GtkBin
                            `-- GtkWindow
                                   `-- GtkDialog
                                          `-- GtkMessageDialog

説明

GtkMessageDialog presents a dialog with an image representing the type of message (Error, Question, etc.) alongside some message text. It's simply a convenience widget; you could construct the equivalent of GtkMessageDialog from GtkDialog without too much effort, but GtkMessageDialog saves typing.

The easiest way to do a modal message dialog is to use run() , though you can also pass in the Gtk::DIALOG_MODAL flag, run() automatically makes the dialog modal and waits for the user to respond to it. run() returns when any dialog button is clicked or the dialog is closed.

コンストラクタ

GtkMessageDialog ( GtkWindow parent , GtkDialogFlags flags , GtkMessage type , GtkButtonsType buttons , string message);

-- Creates a new message dialog.

メソッド

set_markup()
  Set pango-marked up text.

フィールド

image:
  The image icon widget.
label:
  The label containing the text.