bool wxRadioButton::GetValue() const
{
- return m_peer->GetValue();
+ return m_peer->GetValue() != 0;
}
void wxRadioButton::Command(wxCommandEvent& event)
ProcessCommand( event );
}
-bool wxRadioButton::HandleClicked( double timestampsec )
+bool wxRadioButton::OSXHandleClicked( double WXUNUSED(timestampsec) )
{
- // if already set -> no action
- if (GetValue())
- return true;
+ if ( !m_peer->ButtonClickDidStateChange() )
+ {
+ // if already set -> no action
+ if (GetValue())
+ return true;
+ }
wxRadioButton *cycle;
cycle = this->NextInCycle();
}
void wxRadioButton::RemoveFromCycle()
-{
+{
if ((m_cycle == NULL) || (m_cycle == this))
return;