+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;
+}
+
+void wxRadioButton::RemoveFromCycle()
+{
+ wxRadioButton* curr = NextInCycle();
+
+ while( curr )
+ {
+ if( curr->NextInCycle() == this )
+ {
+ curr->m_cycle = this->m_cycle;
+ return;
+ }
+
+ curr = curr->NextInCycle();
+ }
+}