wxVListBox(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- size_t countItems = 0, long style = 0,
- const wxString& name = wxVListBoxNameStr);
+ long style = 0, const wxString& name = wxVListBoxNameStr);
/**
Destructor.
@c wxLB_MULTIPLE which indicates that the listbox should support
multiple selection.
- @returns @true on success or @false if the control couldn't be created.
+ @return @true on success or @false if the control couldn't be created.
*/
bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
Deselects all the items in the listbox. This method is only valid for
multi selection listboxes.
- @returns @true if any items were changed, i.e. if there had been any
+ @return @true if any items were changed, i.e. if there had been any
selected items before, or @false if all the items were already
deselected.
consists in drawing the selected item with the standard background
colour and drawing a border around the item if it is either selected or
current.
+
+ @todo Change this function signature to non-const.
*/
void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const;
region is set to this rectangle before calling this function).
@param n
The index of the item to be drawn.
+
+ @todo Change this function signature to non-const.
*/
virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const;
The bounding rectangle for the item.
@param n
The index of the item.
+
+ @todo Change this function signature to non-const.
*/
virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const;
Selects or deselects the specified item which must be valid (i.e. not
equal to @c wxNOT_FOUND).
- @returns @true if the items selection status has changed or @false
+ @return @true if the items selection status has changed or @false
otherwise.
This function is only valid for the multiple selection listboxes, use
/**
Selects all the items in the listbox.
- @returns @true if any items were changed, i.e. if there had been any
+ @return @true if any items were changed, i.e. if there had been any
unselected items before, or @false if all the items were
already selected.
Selects all items in the specified range which may be given in any
order.
- @returns @true if the items selection status has changed or @false
+ @return @true if the items selection status has changed or @false
otherwise.
This method is only valid for multi selection listboxes.