]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/checkbox.cpp
added calls for invalidating the dc setup on mac explicitely (needed in case of neste...
[wxWidgets.git] / src / mac / carbon / checkbox.cpp
index aa589bd32db9d517554e6c59f95c79e9f9bbe3e3..c3d4ce9709f224f7356a82070aa006f3d1e27c50 100644 (file)
 
 #include "wx/checkbox.h"
 
 
 #include "wx/checkbox.h"
 
+#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
 IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
+#endif
 
 #include <wx/mac/uma.h>
 
 
 #include <wx/mac/uma.h>
 
@@ -59,6 +61,10 @@ void wxCheckBox::Command (wxCommandEvent & event)
 void wxCheckBox::MacHandleControlClick( ControlHandle control , SInt16 controlpart ) 
 {
        SetValue( !GetValue() ) ;
 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
 }
 
 // Bitmap checkbox