X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..80a24267cbc17d85e278e1f10cdfdaea12199639:/src/mac/radiobut.cpp diff --git a/src/mac/radiobut.cpp b/src/mac/radiobut.cpp index a2fc26d840..9a93378c0c 100644 --- a/src/mac/radiobut.cpp +++ b/src/mac/radiobut.cpp @@ -15,7 +15,9 @@ #include "wx/radiobut.h" +#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl) +#endif #include @@ -48,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) { @@ -73,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) @@ -91,4 +97,3 @@ wxRadioButton *wxRadioButton::AddInCycle(wxRadioButton *cycle) return(cycle); } } -