Next: , Previous: Package_Gtk.Extra.Color_Combo, Up: Top



Package Gtk.Extra.Combo_Box

A Gtk_Combo_Box is a general form for a combo box (ie a button associated with a popup window to select its value). This widget should be used only if you intend to write your own kind of combo box. You should look at the following widgets for specific implementation: Gtk_Combo, Gtk_Color_Combo, Gtk_Border_Combo.

Widget Hierarchy
     GObject                       (see Package_Glib.Object)
     Gtk_Object                    (see Package_Gtk.Object)
        \___ Gtk_Widget            (see Package_Gtk.Widget)
           \___ Gtk_Container      (see Package_Gtk.Container)
              \___ Gtk_Box         (see Package_Gtk.Box)
                 \___ Gtk_Combo_Box (see Package_Gtk.Extra.Combo_Box)
     

Subprograms
procedure Gtk_New (Widget : out Gtk_Combo_Box);
Create a new combo box.
This creates all the internal subwidgets (the popup window,...) but this is your responsibility to put something inside the button or the popup window.

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with a Gtk_Combo_Box.

procedure Hide_Popdown_Window (Combobox : access Gtk_Combo_Box_Record);
Hide the popup window, release the mouse grabs, and restore the
default aspect for the arrow.

function Get_Button (Combobox : access Gtk_Combo_Box_Record) return Gtk.Button.Gtk_Button;
Return the button that shows the value of the combo.

function Get_Arrow (Combobox : access Gtk_Combo_Box_Record) return Gtk.Arrow.Gtk_Arrow;
Return the arrow button.
The user has to click on it to open the popup window.

function Get_Frame (Combobox : access Gtk_Combo_Box_Record) return Gtk.Frame.Gtk_Frame;
The frame displayed in the popup window.
You should add whatever value the popup window should display in it.