+ SetValue(true) ;
+
+ wxCommandEvent event2(wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId );
+ event2.SetEventObject(this);
+ event2.SetInt( true );
+ ProcessCommand(event2);
+ return noErr ;
+}
+
+wxRadioButton *wxRadioButton::AddInCycle(wxRadioButton *cycle)
+{
+ wxRadioButton *next,*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);
+ }
+}
+
+void wxRadioButton::RemoveFromCycle()
+{
+ if (m_cycle==NULL || m_cycle == this)
+ {
+ return;
+ }
+ else
+ {
+ // Find the previous one and make it point to the next one
+ wxRadioButton* prev = this;
+ while (prev->m_cycle != this)
+ prev = prev->m_cycle;
+ prev->m_cycle = m_cycle;
+ }
+}
+
+#endif