List Controls

List Controls
Controls which contain items
Functions/Procedures
Supertopics
Subtopics

List Controls

[proc]
add_item
( atom combo, sequence text )

Category: List Controls

Used to add one or more strings into a wxListBox, wxComboBox, or wxChoice. text can be either a string, or a sequence of strings, in which case all of the items will be added.

This is also used to enter one or more string, bitmap sequences into a wxBitmapComboBox.


List Controls

[proc]
clear_items
( atom control )

Category: List Controls

Clears all items from a wxListBox, wxListCtrl, wxChoice or wxComboBox.


List Controls

[proc]
delete_item
( atom control, integer item )

Category: List Controls

Delete an item from a wxListBox, wxListCtrl, wxComboBox or wxChoice.


List Controls

[func]
find_string
( atom control, sequence string )

Category: List Controls

Returns the index of specified item string


List Controls

[func]
get_list_string
( atom list, integer item )

Category: List Controls

Returns the text label of the list item

This function works for both wxListCtrl and wxListBox.


List Controls

[func]
get_selection
( atom control )

Category: List Controls

Returns the selected index(es) of the control

Used to get the index of the selected item of a wxListBox, wxListCtrl, wxComboBox wxChoice, or wxMultiChoiceDialog. For the case of a wxListBox or wxMultiChoiceDialog. The return is always a sequence, or an empty sequence, if nothing is selected. The other types of controls return -1 is no item is selected.


List Controls

[func]
get_string_selection
( atom list )

Category: List Controls

Returns the text of selected item

Used to get the text of the selected item of a wxListBox, wxComboBox or wxChoice.


List Controls

[proc]
insert_item
( atom list, integer position, sequence text )

Category: List Controls

Inserts the item into the list before position. Not valid for wxLB_SORT or wxCB_SORT styles, use add_item instead.


List Controls

[proc]
set_selection
( atom control, object item )

Category: List Controls

To unselect a wxListBox item, the item parameter should be a sequence: {item_number, -1}. To unselect a wxListCtrl item, item should be {item_number, 0}. To select items for a wxMultiChoiceDialog, item should be either an index number starting from zero, or a sequence of indexes.


List Controls

[proc]
set_string
( atom control, integer item, sequence string )

Category: List Controls

Set the string of an item in a wxListBox, wxComboBox or wxChoice.