X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1dd521517c6a7047dce77302cd35a7f07ee2f595..0b014ec713bbadb49460e4b23310fd325cdc0036:/src/mac/radiobut.cpp diff --git a/src/mac/radiobut.cpp b/src/mac/radiobut.cpp index 0c712b61f9..9a93378c0c 100644 --- a/src/mac/radiobut.cpp +++ b/src/mac/radiobut.cpp @@ -50,7 +50,8 @@ void wxRadioButton::SetValue(bool val) ::SetControlValue( m_macControl , val ) ; - if (val) { + if (val) + { cycle=this->NextInCycle(); if (cycle!=NULL) { while (cycle!=this) { @@ -75,6 +76,9 @@ void wxRadioButton::Command (wxCommandEvent & event) void wxRadioButton::MacHandleControlClick( ControlHandle control , SInt16 controlpart ) { SetValue(true) ; + wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId ); + event.SetEventObject(this); + ProcessCommand(event); } wxRadioButton *wxRadioButton::AddInCycle(wxRadioButton *cycle) @@ -93,4 +97,3 @@ wxRadioButton *wxRadioButton::AddInCycle(wxRadioButton *cycle) return(cycle); } } -