MacPreControlCreate( parent , id , label , pos , size ,style, validator , name , &bounds , title ) ;
- m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , true , 0 , 0 , 1,
+ m_macControl = UMANewControl( parent->GetMacRootWindow() , &bounds , title , false , 0 , 0 , 1,
kControlRadioButtonProc , (long) this ) ;
MacPostControlCreate() ;
+ m_cycle = this ;
+
if (HasFlag(wxRB_GROUP))
{
AddInCycle( NULL ) ;
{
int i;
wxRadioButton *cycle;
-
+ if ( GetControlValue( m_macControl ) == val )
+ return ;
+
::SetControlValue( m_macControl , val ) ;
-
if (val)
{
cycle=this->NextInCycle();
}
}
}
+ wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId );
+ event.SetEventObject(this);
+ event.SetInt( GetValue() );
+ ProcessCommand(event);
}
bool wxRadioButton::GetValue() const
void wxRadioButton::MacHandleControlClick( ControlHandle control , SInt16 controlpart )
{
- SetValue(true) ;
- wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId );
- event.SetEventObject(this);
- event.SetInt( GetValue() );
- ProcessCommand(event);
+ SetValue(true) ;
}
wxRadioButton *wxRadioButton::AddInCycle(wxRadioButton *cycle)