![]() |
![]() |
It is very similar to a ComboBox, but it displays the selected value in an entry to allow modifying it.
In contrast to a ComboBox, the underlying model of a ComboBoxEntry 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.
See also ComboBoxEntryText, , which is specialised for a single text column.
To add and remove strings from the list, just modify the model using its data manipulation API. You can get the* Entry by using get_child().
Public Member Functions | |
virtual | ~ComboBoxEntry () |
GtkComboBoxEntry* | gobj () |
Provides access to the underlying C GtkObject. | |
const GtkComboBoxEntry* | gobj () const |
Provides access to the underlying C GtkObject. | |
ComboBoxEntry () | |
ComboBoxEntry (const Glib::RefPtr<TreeModel>& model, const TreeModelColumnBase& text_column) | |
Creates a new ComboBoxEntry which has an Entry as child and a list of strings as popup. | |
ComboBoxEntry (const Glib::RefPtr<TreeModel>& model, int text_column=0) | |
Creates a new ComboBoxEntry which has an Entry as child and a list of strings as popup. | |
void | set_text_column (const TreeModelColumnBase& text_column) const |
Sets the model column which entry_box should use to get strings from to be text_column . | |
void | set_text_column (int text_column) const |
Sets the model column which entry_box should use to get strings from to be text_column . | |
int | get_text_column () const |
Returns the column which entry_box is using to get the strings from. | |
Entry* | get_entry () |
See Bin::get_entry(). | |
const Entry* | get_entry () const |
See Bin::get_entry(). | |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::ComboBoxEntry* | wrap (GtkComboBoxEntry* object, bool take_copy=false) |
|
|
|
|
|
Creates a new ComboBoxEntry which has an Entry as child and a list of strings as popup. You can get the Entry from a ComboBoxEntry using get_entry(). To add and remove strings from the list, just modify model using its data manipulation API.
|
|
Creates a new ComboBoxEntry which has an Entry as child and a list of strings as popup. You can get the Entry from a ComboBoxEntry using get_entry(). To add and remove strings from the list, just modify model using its data manipulation API.
|
|
See Bin::get_entry().
|
|
See Bin::get_entry().
|
|
Returns the column which entry_box is using to get the strings from.
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ComboBox. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ComboBox. |
|
Sets the model column which entry_box should use to get strings from to be text_column . Since: 2.4.
|
|
Sets the model column which entry_box should use to get strings from to be text_column . Since: 2.4.
|
|
|