A text entry field with a dropdown list
A ComboBoxEntry 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 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 comboBoxEntrySetTextColumn), and the entry will show the content of the text column in the selected row. To get the text from the entry, use comboBoxEntryGetActiveText.
The changed signal will be emitted while typing into a ComboBoxEntry, as well as when selecting an item from the ComboBoxEntry's list. Use comboBoxGetActive or comboBoxGetActiveIter to discover whether an item was actually selected from the list.
Connect to the activate signal of the Entry (use binGetChild) to detect when the user actually finishes entering text.
|class ComboBoxClass o => ComboBoxEntryClass o|
|castToComboBoxEntry :: GObjectClass obj => obj -> ComboBoxEntry|
|toComboBoxEntry :: ComboBoxEntryClass o => o -> ComboBoxEntry|
|comboBoxEntryNew :: IO ComboBoxEntry|
|Creates a new ComboBoxEntry which has a Entry as child. After construction, you should set a model using comboBoxSetModel and a text column using comboBoxEntrySetTextColumn.|
|comboBoxEntryNewText :: IO ComboBoxEntry|
|Creates a new ComboBoxEntry with a store containing strings. See comboBoxEntrySetModelText.|
|comboBoxEntrySetModelText :: ComboBoxEntryClass self => self -> IO (ListStore String)|
Set a model box that holds strings.
This function stores a ListStore with the widget that contains only strings. This model is also returned when calling comboBoxGetModel. Note that only the functions comboBoxAppendText, comboBoxInsertText, comboBoxPrependText and comboBoxRemoveText should be called on this widget once comboBoxSetModelText is called. Any exisiting model or renderers are removed before setting the new text model. In order to respond to new texts that the user enters, it is necessary to connect to the entryActivate signal of the contained Entry an insert the text into the text model which can be retrieved with comboBoxGetModelText.
|comboBoxEntryGetActiveText :: ComboBoxEntryClass self => self -> IO (Maybe String)|
Retrieve the text currently in the entry.
|comboBoxEntryTextColumn :: ComboBoxEntryClass self => Attr self (ColumnId row String)|
A column in the data source model to get the strings from.
Allowed values: >= 0
Default value: invalidColumnId
|Produced by Haddock version 0.8|