This package provides a ready to use high level dialog capability.
Types |
---|
type Button_Range is range 0 .. 8; | |
The range of valid buttons.
| |
type Message_Dialog_Buttons is mod 2 ** 32; | |
Define the set of values a button in a message dialog box can have.
| |
type Message_Dialog_Type is (Warning, -- Message box with a yellow exclamation point. Error, -- Message box with a red stop sign. Information, -- Message box with a blue "i". Confirmation, -- Message box with a blue question mark. Custom -- Message box with no pixmap. The caption of the box should be set by -- the user. ); | |
Define the values describing the type of message box.
Used by the Message_Dialog function.
|
Subprograms |
---|
function Message_Dialog (Msg : Glib.UTF8_String; Dialog_Type : Message_Dialog_Type := Information; Buttons : Message_Dialog_Buttons := Button_OK or Button_Help; Default_Button : Message_Dialog_Buttons := Button_OK; Help_Msg : Glib.UTF8_String := ""; Title : Glib.UTF8_String := ""; Justification : Gtk_Justification := Justify_Center; Parent : Gtk.Window.Gtk_Window := null) return Message_Dialog_Buttons; | ||
Display a message dialog box centered on the mouse. This function will return only after the user pressed one of the buttons or deleted the dialog, by running an additional level of main loop. One of the following values will be returned:
| ||
function Create_Gtk_Dialog (Msg : Glib.UTF8_String; Dialog_Type : Message_Dialog_Type := Information; Title : Glib.UTF8_String := ""; Justification : Gtk_Justification := Justify_Center; Parent : Gtk.Window.Gtk_Window := null) return Gtk.Dialog.Gtk_Dialog; | ||
Convenience function to create a new dialog. |