X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43c48e1e53d74cef62d15f08f015d9efeb45a0c1..3508c1432884472f0d24f0f98c0dc75ed35df297:/interface/wx/radiobox.h diff --git a/interface/wx/radiobox.h b/interface/wx/radiobox.h index 0e90417251..bf5f170776 100644 --- a/interface/wx/radiobox.h +++ b/interface/wx/radiobox.h @@ -85,10 +85,10 @@ public: 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. @@ -125,10 +125,10 @@ public: 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. @@ -148,7 +148,7 @@ public: 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() @@ -162,7 +162,7 @@ public: 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. @@ -186,15 +186,16 @@ public: */ 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? */ - virtual int FindString(const wxString& s, bool bCase = false) const; + virtual int FindString(const wxString& string, bool bCase = false) const; /** Returns the number of columns in the radiobox. @@ -313,5 +314,5 @@ public: @endWxPythonOnly */ - virtual bool Show(unsigned int item, const bool show = true); + virtual bool Show(unsigned int item, bool show = true); };