X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1dd521517c6a7047dce77302cd35a7f07ee2f595..1a787c5dc89b1cb6a9ddb4ebef3ad2fb24b49c8c:/src/mac/radiobut.cpp?ds=sidebyside diff --git a/src/mac/radiobut.cpp b/src/mac/radiobut.cpp index 0c712b61f9..f5f95dfab2 100644 --- a/src/mac/radiobut.cpp +++ b/src/mac/radiobut.cpp @@ -15,9 +15,7 @@ #include "wx/radiobut.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl) -#endif #include @@ -75,6 +73,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)