// 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(),
return item;
}
+#if WXWIN_COMPATIBILITY_2_4
+
+// these functions are deprecated and don't do anything
+int wxRadioBoxBase::GetNumberOfRowsOrCols() const
+{
+ return 1;
+}
+
+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