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_Type is
(Message_Info,
Message_Warning,
Message_Question,
Message_Error);
Subprograms
-
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);
-
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);
-
function Get_Type return GType;
-
procedure Set_Markup
(Message_Dialog : access Gtk_Message_Dialog_Record;
Str : String);
-
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);