WxListBox

From WxWiki

Jump to: navigation, search

A simple wxListCtrl variant

See also: WxListCtrl

[edit] InsertItem

wxListBox comes with a `Insert' member. It is inherited from its parent's wxControlWithItems::Insert

[edit] Append

A quick insertion is done with ->Append(strAny). This is helpful along with control style wxLB_SORT.

[edit] SetSelection

You can select all the items in a wxListBox (if multiselection is enabled):

for(size_t i = 0; i < listBox->GetCount(); i++)
   listBox->SetSelection(i, true);
Personal tools