]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/checkbox.cpp
mac changes : wxDC - removed doubly defined vars (inherited from base) and fixed...
[wxWidgets.git] / src / mac / checkbox.cpp
index aa589bd32db9d517554e6c59f95c79e9f9bbe3e3..c3d4ce9709f224f7356a82070aa006f3d1e27c50 100644 (file)
 
 #include "wx/checkbox.h"
 
+#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
+#endif
 
 #include <wx/mac/uma.h>
 
@@ -59,6 +61,10 @@ void wxCheckBox::Command (wxCommandEvent & event)
 void wxCheckBox::MacHandleControlClick( ControlHandle control , SInt16 controlpart ) 
 {
        SetValue( !GetValue() ) ;
+    wxCommandEvent event(wxEVT_COMMAND_CHECKBOX_CLICKED, m_windowId );
+    event.SetInt(GetValue());
+    event.SetEventObject(this);
+    ProcessCommand(event);
 }
 
 // Bitmap checkbox