gtk-sharp0.0.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Convenient message window presents a with an image representing the
(Error, Question, etc.) alongside some message text.
It's simply a convenience ; you could construct the equivalent of
from without too much effort, but
saves typing.
The MessageDialog is displayed using , which
automatically makes the from
modal and waits for the user to respond to it.
returns when any
in the is clicked.
A message dialog
MessageDialog md = new MessageDialog (parent_window,
DialogFlags.DestroyWithParent,
MessageType.Error,
ButtonsType.Close, "Error loading file");
int result = md.Run ();
If you would like a non modal dialog just set the Modal property of the dialog, ie my_dialog.Modal = false;
Gtk.DialogAtk.ImplementorGLib.IWrapperGLib.IWrapperSystem.IDisposableMethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal constructor
Pointer to the C object.
An instance of , wrapping the C object.This is an internal constructor, and should not be used by user code.ConstructorInternal constructoran object of type This is an internal constructor, and should not be used by user code.ConstructorCreates an instance of
an object of type
an object of type
an object of type
an object of type
an object of type an object of type
Creates an instance of
MessageDialog md = new MessageDialog
(parent_window, Gtk.DialogFlags.DestroyWithParent,
Gtk.MessageType.Error, Gtk.ButtonsType.Close, "Error loading file");
PropertySystem.UInt32The for The for the class.PropertyGtk.MessageTypeThe of the an object of type The of the ConstructorInternal constructor
GLib type for the type
Creates a new instance of , using the GLib-provided typeThis is a constructor used by derivative types of that would have their own GLib type assigned to it. This is not typically used by C# code.