X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18c509fb88b029169eb1b1b6a2c9ff852b7c7f84..c497d0b2123337d89fe5d35c25a2f37026b7dba9:/src/common/radiocmn.cpp?ds=sidebyside diff --git a/src/common/radiocmn.cpp b/src/common/radiocmn.cpp index c936cc3593..47f15e5b2c 100644 --- a/src/common/radiocmn.cpp +++ b/src/common/radiocmn.cpp @@ -38,6 +38,18 @@ // implementation // ============================================================================ +int wxRadioBoxBase::FindString(const wxString& s) const +{ + int count = GetCount(); + for ( int n = 0; n < count; n++ ) + { + if ( GetString(n) == s ) + return n; + } + + return wxNOT_FOUND; +} + int wxRadioBoxBase::GetNextItem(int item, wxDirection dir, long style) const { int count = GetCount(), @@ -148,5 +160,24 @@ void wxRadioBoxBase::SetNumberOfRowsOrCols(int WXUNUSED(n)) #endif // WXWIN_COMPATIBILITY_2_4 +#if WXWIN_COMPATIBILITY_2_2 + +int wxRadioBoxBase::Number() const +{ + return GetCount(); +} + +wxString wxRadioBoxBase::GetLabel(int n) const +{ + return GetString(n); +} + +void wxRadioBoxBase::SetLabel(int n, const wxString& label) +{ + SetString(n, label); +} + +#endif // WXWIN_COMPATIBILITY_2_2 + #endif // wxUSE_RADIOBOX