- wxVListBox
Normal constructor which calls Create() internally.
- Clear
Deletes all items from the control.
- Create
Creates the control.
- DeselectAll
Deselects all the items in the listbox.
- GetFirstSelected
Returns the index of the first selected item in the listbox or wxNOT_FOUND if no items are currently selected.
- GetItemCount
Get the number of items in the control.
- GetItemRect
Returns the rectangle occupied by this item in physical coordinates.
- GetMargins
Returns the margins used by the control.
- GetNextSelected
Returns the index of the next selected item or wxNOT_FOUND if there are no more.
- GetSelectedCount
Returns the number of the items currently selected.
- GetSelection
Get the currently selected item or wxNOT_FOUND if there is no selection.
- GetSelectionBackground
Returns the background colour used for the selected cells.
- HasMultipleSelection
Returns true if the listbox was created with wxLB_MULTIPLE style and so supports multiple selection or false if it is a single selection listbox.
- IsCurrent
Returns true if this item is the current one, false otherwise.
- IsSelected
Returns true if this item is selected, false otherwise.
- OnDrawBackground
This method is used to draw the items background and, maybe, a border around it.
- OnDrawItem
The derived class must implement this function to actually draw the item with the given index on the provided DC.
- OnDrawSeparator
This method may be used to draw separators between the lines.
- OnMeasureItem
The derived class must implement this method to return the height of the specified item (in pixels).
- Select
Selects or deselects the specified item which must be valid (i.e.
- SelectAll
Selects all the items in the listbox.
- SelectRange
Selects all items in the specified range which may be given in any order.
- SetItemCount
Set the number of items to be shown in the control.
- SetMargins
Set the margins: horizontal margin is the distance between the window border and the item contents while vertical margin is half of the distance between items.
- SetSelection
Set the selection to the specified item, if it is -1 the selection is unset.
- SetSelectionBackground
Sets the colour to be used for the selected cells background.
- Toggle
Toggles the state of the specified item, i.e.