+wxRadioButton* wxRadioButton::AddInCycle(wxRadioButton *cycle)
+{
+ if (cycle == NULL)
+ {
+ m_cycle = this;
+ }
+ else
+ {
+ wxRadioButton* current = cycle;
+ while ( current->m_cycle != cycle )
+ current = current->m_cycle;
+ m_cycle = cycle;
+ current->m_cycle = this;
+ }
+
+ return cycle;
+}
+
+wxRadioButton* wxRadioButton::ClearSelections()
+{
+ wxRadioButton* cycle = NextInCycle();
+ wxRadioButton* old = 0;
+
+ if (cycle)
+ {
+ while (cycle != this)
+ {
+ if ( cycle->GetValue() )
+ {
+ old = cycle;
+ cycle->SetValue(false);
+ }
+ cycle = cycle->NextInCycle();
+ }
+ }
+
+ return old;