+wxRadioButton* wxRadioButton::AddInCycle(wxRadioButton *cycle)
+{
+ wxRadioButton* next;
+ wxRadioButton* current;
+
+ if (cycle == NULL)
+ {
+ m_cycle = this;
+ return this;
+ }
+ else
+ {
+ current = cycle;
+ while ((next = 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;