package Implements_Cell_Layout is new Glib.Types.Implements (Gtk.Cell_Layout.Gtk_Cell_Layout, Gtk_Combo_Box_Entry_Record, Gtk_Combo_Box_Entry);
package Implements_Cell_Editable is new Glib.Types.Implements (Gtk.Cell_Editable.Gtk_Cell_Editable, Gtk_Combo_Box_Entry_Record, Gtk_Combo_Box_Entry);
type Gtk_Combo_Box_Entry_Record is new Gtk.Combo_Box.Gtk_Combo_Box_Record with null record;
type Gtk_Combo_Box_Entry is access all Gtk_Combo_Box_Entry_Record'Class;
Text_Column_Property : constant Glib.Properties.Property_Int;
procedure Gtk_New
( | Combo | : out Gtk_Combo_Box_Entry); |
procedure Initialize
( | Combo | : access Gtk_Combo_Box_Entry_Record'Class); |
procedure Gtk_New_Text
( | Combo | : out Gtk_Combo_Box_Entry); |
procedure Initialize_Text
( | Combo | : access Gtk_Combo_Box_Entry_Record'Class); |
procedure Gtk_New_With_Model
( | Combo | : out Gtk_Combo_Box_Entry; |
Model | : access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class; | |
Text_Column | : Gint); |
procedure Initialize_With_Model
( | Combo | : access Gtk_Combo_Box_Entry_Record'Class; |
Model | : access Gtk.Tree_Model.Gtk_Tree_Model_Record'Class; | |
Text_Column | : Gint); |
function Get_Type return Glib.GType;
procedure Set_Text_Column
( | Entry_Box | : access Gtk_Combo_Box_Entry_Record; |
Text_Column | : Gint); |
function Get_Text_Column
( | Entry_Box | : access Gtk_Combo_Box_Entry_Record) return Gint; |
function "+"
( | Box | : access Gtk_Combo_Box_Entry_Record'Class) return Gtk.Cell_Layout.Gtk_Cell_Layout renames Implements_Cell_Layout.To_Interface; |
function "-"
( | Layout | : Gtk.Cell_Layout.Gtk_Cell_Layout) return Gtk_Combo_Box_Entry renames Implements_Cell_Layout.To_Object; |
function "+"
( | Box | : access Gtk_Combo_Box_Entry_Record'Class) return Gtk.Cell_Editable.Gtk_Cell_Editable renames Implements_Cell_Editable.To_Interface; |
function "-"
( | Editable | : Gtk.Cell_Editable.Gtk_Cell_Editable) return Gtk_Combo_Box_Entry renames Implements_Cell_Editable.To_Object; |
A Gtk_Combo_Box_Entry is a widget that allows the user to choose from a list of valid choices or enter a different value. It is very similar to Gtk_Combo_Box, but it displays the selected value in an entry to allow modifying it.
In contrast to a Gtk_Combo_Box, the underlying model of a Gtk_Combo_Box_Entry must always have a text column (see Set_Text_Column), and the entry will show the content of the text column in the selected row.
To get the text from the entry, use Gtk.Combo_Box.Get_Active_Text.
The changed signal will be emitted while typing into a Gtk_Combo_Box_Entry, as well as when selecting an item from the Gtk_Combo_Box_Entry's list. Use Gtk.Combo_Box.Get_Active or Gtk.Combo_Box.Get_Active_Iter to discover whether an item was actually selected from the list.
Connect to the activate signal of the Gtk_Entry (use Gtk.Bin.Get_Child) to detect when the user actually finishes entering text.
The convenience API to construct simple text-only Gtk_Combo_Box can also be used with Gtk_Combo_Box_Entry which have been constructed with Gtk_New_Text.
Binding from C File version 2.8.17