// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "radiobut.h"
-#endif
-
#include "wx/wxprec.h"
#if wxUSE_RADIOBTN
return true;
}
+wxRadioButton::~wxRadioButton()
+{
+ RemoveFromCycle();
+}
+
void wxRadioButton::SetValue(bool val)
{
wxRadioButton *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