- // string access
- virtual int GetCount() const = 0;
- virtual int FindString(const wxString& s) const
- {
- int count = GetCount();
- for ( int n = 0; n < count; n++ )
- {
- if ( GetString(n) == s )
- return n;
- }
-
- return wxNOT_FOUND;
- }
-
- virtual wxString GetString(int n) const = 0;
- virtual void SetString(int n, const wxString& label) = 0;
-
- // change the individual radio button state
- virtual void Enable(int n, bool enable = true) = 0;
- virtual void Show(int n, bool show = true) = 0;
-
- // layout parameters
- virtual int GetColumnCount() const = 0;
- virtual int GetRowCount() const = 0;
+ // return number of columns/rows in this radiobox
+ int GetColumnCount() const { return m_numCols; }
+ int GetRowCount() const { return m_numRows; }