Home | All Classes | Grouped Classes | Index | Search
Listbox component More...
Derived from:
CL_Component
Derived by:
none
Group: GUI (Controls)
#include <ClanLib/gui.h>
Construction:
Listbox constructor  | 
Attributes:
Returns the number of items in the list box.  | |
Returns items in the list.  | |
Returns selected items as strings.  | |
Returns the text of the current item.  | |
Returns an item.  | |
Returns the text for an item.  | |
Returns the index of the current item of the listbox, or -1 if no item has been selected.  | |
Returns true if item index is selected. Returns false if it is not selected or if there is an error.  | |
Returns true if the listbox is in multiselection mode.  | |
Returns the height of one item.  | |
Returns the index of the item at the top of the screen.  | 
Operations:
Inserts a listitem into the list at index.  | |
Removes and deletes the item at position index.  | |
Replaces the item at position index with new item.  | |
Sets the highlighted item to the item index.  | |
Selects item at index if select is true, or unselects it if select is false.  | |
Deselects current selected item.  | |
If select is true, all items get selected, else all get unselected. This works only in Multi selection mode.  | |
Inverts the selection. Works only in Multi selection mode.  | |
Sets the listbox to multiselection if enable is true, single selection otherwise.  | |
Sets the height of each item.  | |
Scrolls the list box so the item at position index in the list is displayed in the top row of the listbox.  | |
Sorts the items in ascending order, if ascending is true, or descending otherwise.  | |
Deletes all items in the list.  | 
Signals:
This signal is emitted when the user highlights a new current item.  | |
This signal is emitted when the user double clicks, presses space or return on an item.  | |
This signal is emitted when the selection set of a listbox changes.  | |
This signal is emitted when a new item is added to the listbox.  | |
This signal is emitted when an item is removed from the listbox.  | |
This signal is emitted when the listbox is cleared.  | 
Detailed description:
!group=GUI/Controls! !header=gui.h!