Toc Gallery Index Tree Gtk.Message_Dialog

Screenshot

No screeshot

Hierarchy

See Also

Description

Gtk_Message_Dialog 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 Gtk_Message_Dialog from Gtk_Dialog without too much effort, but Gtk_Message_Dialog saves typing.

The easiest way to do a modal message dialog is to use Gtk.Dialog.Run, though you can also pass in the MODAL flag, Gtk.Dialog.Run automatically makes the dialog modal and waits for the user to respond to it. Gtk.Dialog.Run returns when any dialog button is clicked.

Types

  • type Gtk_Buttons_Type is (Buttons_None, Buttons_Ok, Buttons_Close, Buttons_Cancel, Buttons_Yes_No, Buttons_Ok_Cancel);
  • type Gtk_Message_Dialog is access all Gtk_Message_Dialog_Record'Class;
  • type Gtk_Message_Dialog_Record is new Gtk.Dialog.Gtk_Dialog_Record with null record;
  • type Gtk_Message_Type is (Message_Info, Message_Warning, Message_Question, Message_Error);

Subprograms

  • procedure Gtk_New (Dialog : out Gtk_Message_Dialog; Parent : Gtk.Window.Gtk_Window := null; Flags : Gtk.Dialog.Gtk_Dialog_Flags := 0; Typ : Gtk_Message_Type := Message_Info; Buttons : Gtk_Buttons_Type := Buttons_Close; Message : String);
    procedure Initialize (Dialog : access Gtk_Message_Dialog_Record'Class; Parent : Gtk.Window.Gtk_Window := null; Flags : Gtk.Dialog.Gtk_Dialog_Flags := 0; Typ : Gtk_Message_Type := Message_Info; Buttons : Gtk_Buttons_Type := Buttons_Close; Message : String);
    Creates a new message dialog, which is a simple dialog with an icon indicating the dialog type (error, warning, etc.) and some text the user may want to see. When the user clicks a button a "response" signal is emitted with response IDs from Gtk.Dialog.Gtk_Response_Type. See Gtk_Dialog for more details.
  • procedure Gtk_New_With_Markup (Dialog : out Gtk_Message_Dialog; Parent : Gtk.Window.Gtk_Window := null; Flags : Gtk.Dialog.Gtk_Dialog_Flags := 0; Typ : Gtk_Message_Type := Message_Info; Buttons : Gtk_Buttons_Type := Buttons_Close; Message : String);
    procedure Initialize_With_Markup (Dialog : access Gtk_Message_Dialog_Record'Class; Parent : Gtk.Window.Gtk_Window := null; Flags : Gtk.Dialog.Gtk_Dialog_Flags := 0; Typ : Gtk_Message_Type := Message_Info; Buttons : Gtk_Buttons_Type := Buttons_Close; Message : String);
    Same as Gtk_New and Initialize, but Message might contain special markup like , , ,...
  • function Get_Type return GType;
    Return the internal type used for a Gtk_Message_Dialog
  • procedure Set_Markup (Message_Dialog : access Gtk_Message_Dialog_Record; Str : String);
    Sets the text of the message dialog to be Str, which is marked up with the >Pango text markup language. This means that you can for instance to get bold text.
  • procedure Format_Secondary_Markup (Message_Dialog : access Gtk_Message_Dialog_Record; Message : String);
    procedure Format_Secondary_Text (Message_Dialog : access Gtk_Message_Dialog_Record; Message : String);
    Sets the secondary text of the message dialog to be Message. When using markup, special marks are interpreted ( for bold, for italic,...) Note that setting a secondary text makes the primary text become bold, unless you have provided explicit markup.

Properties

  • Buttons_Property
    Enum
    The buttons shown in the message dialog
  • Message_Type_Property
    Enum
    The type of message

Style Properties

  • Message_Border_Property
    Int
    Width of border around the label and image in the message dialog
  • Use_Separator_Property
    Boolean
    Whether to put a separator between the message dialog's text and