[Contents] [Back] [Prev] [Up] [Next] [Forward]

# 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.

- Gtk.Extra.Combo_Box Widget Hierarchy
- Gtk.Extra.Combo_Box Subprograms

## Widget Hierarchy

    Gtk_Object                    (see section Package Gtk.Object)
       \___ Gtk_Widget            (see section Package Gtk.Widget)
          \___ Gtk_Container      (see section Package Gtk.Container)
             \___ Gtk_Box         (see section Package Gtk.Box)
                \___ Gtk_Combo_Box (see section 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.

[Contents] [Back] [Prev] [Up] [Next] [Forward]