@library{wxcore}
@category{ctrl}
- <!-- @appearance{radiobox.png} -->
+ @appearance{radiobox.png}
@see @ref overview_eventhandling, wxRadioButton, wxCheckBox
*/
const wxSize& size = wxDefaultSize,
int n = 0,
const wxString choices[] = NULL,
- int majorDimension = 0,
+ int majorDimension = 1,
long style = wxRA_SPECIFY_COLS,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "radioBox");
+ const wxString& name = wxRadioBoxNameStr);
/**
Constructor, creating and showing a radiobox.
const wxPoint& pos,
const wxSize& size,
const wxArrayString& choices,
- int majorDimension = 0,
+ int majorDimension = 1,
long style = wxRA_SPECIFY_COLS,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "radioBox");
+ const wxString& name = wxRadioBoxNameStr);
/**
Destructor, destroying the radiobox item.
*/
- ~wxRadioBox();
+ virtual ~wxRadioBox();
/**
Creates the radiobox for two-step construction. See wxRadioBox()
int majorDimension = 0,
long style = wxRA_SPECIFY_COLS,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "radioBox");
+ const wxString& name = wxRadioBoxNameStr);
/**
Creates the radiobox for two-step construction. See wxRadioBox()
int majorDimension = 0,
long style = wxRA_SPECIFY_COLS,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "radioBox");
+ const wxString& name = wxRadioBoxNameStr);
/**
Enables or disables an individual button in the radiobox.
*/
virtual bool Enable(unsigned int n, bool enable = true);
-
/**
- Finds a button matching the given string, returning the position if found, or
- -1 if not found.
+ Finds a button matching the given string, returning the position if found,
+ or @c wxNOT_FOUND if not found.
@param string
The string to find.
+ @param bCase
+ Should the search be case-sensitive?
*/
- int FindString(const wxString& string) const;
+ virtual int FindString(const wxString& string, bool bCase = false) const;
/**
Returns the number of columns in the radiobox.
@param pt
Point in client coordinates.
*/
- int GetItemFromPoint(const wxPoint pt) const;
+ virtual int GetItemFromPoint(const wxPoint& pt) const;
/**
Returns the helptext associated with the specified @a item if any or @c
@param n
The zero-based button position.
*/
- bool IsItemEnabled(unsigned int n) const;
+ virtual bool IsItemEnabled(unsigned int n) const;
/**
Returns @true if the item is currently shown or @false if it was hidden
@param n
The zero-based button position.
*/
- bool IsItemShown(unsigned int n) const;
+ virtual bool IsItemShown(unsigned int n) const;
/**
Sets the helptext for an item. Empty string erases any existing helptext.
@endWxPythonOnly
*/
- virtual bool Show(unsigned int item, const bool show = true);
+ virtual bool Show(unsigned int item, bool show = true);
};