]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/radiobut.cpp
Changed order of #ifdefs to get native version on OS/2, even if
[wxWidgets.git] / src / mac / radiobut.cpp
index 0c712b61f9e9072b2dc10689b15e2a327496c448..f5f95dfab2ed077ed0129df18750e82cc96a650e 100644 (file)
@@ -15,9 +15,7 @@
 
 #include "wx/radiobut.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
-#endif
 
 #include <wx/mac/uma.h>
 
@@ -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)