# combobox class Combined button and popup list
Inherits
object widget
Functions
`$insertList(<list>, <index>)`
Inserts the items present in the <list> object starting from index <index>, which is -1 by default (which means the items will be appended).
`$insertItem(<str>, <index>)`
Inserts a text item at position <index>. If index is negative or not specified the item is appended.
`$changeItem(<str>, <index>)`
Changes text of item at <index> to <str>.
`$removeItem(<index>)`
Removes item at given index.
`$setMaxCount(<num>)`
Sets the maximum number of items the combo box can hold to <num>. If <num> is smaller than the current number of items, the list is truncated at the end. There is no limit by default.
`$maxCount()`
Returns the current maximum number of items in the combo box.
`$count()`
Returns number of items in the widget.
`$current()`
Returns currently selected item.
`$currentItem()`
Returns index of currently selected item.
`$setEditable(<bool>)`
Make the input field editable, if <bool>. Otherwise the user may only choose one of the items in the combo box. If the parameter is ommited, it is assumed to be false.
`$editable()`
Returns whether the combobox is editable or not.
`$setEditText(<str>)`
Sets the text in the embedded line edit to newText without changing the combo's contents. Does nothing if the combo isn't editable.
`$textAt(<index>)`
Returns item at given index.
`$setCurrentItem(<index>)`
Sets the current combobox item. This is the item to be displayed on the combobox button.

Main, Object Classes

KVIrc 3.0.0 Documentation
Generated by root at Thu Apr 7 23:58:20 2005