- return current->Enable(enable);
-}
-
-
-//-------------------------------------------------------------------------------------
-// ¥ FindString
-//-------------------------------------------------------------------------------------
-// Finds a button matching the given string, returning the position if found
-// or -1 if not found
-
-int wxRadioBox::FindString(const wxString& s) const
-{
- int i;
- wxRadioButton *current;
-
- current=m_radioButtonCycle;
- for (i = 0; i < m_noItems; i++)
- {
- if (s == current->GetLabel())
- return i;
- current=current->NextInCycle();
- }
- return -1;