]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/button.cpp
new capture handling, can be turned off
[wxWidgets.git] / src / mac / carbon / button.cpp
index 0298236cc3b4b4d28f47052dcdc0fa5839857155..66f2cfdeff2e9f46926f0b3f5c0b015be16941c9 100644 (file)
@@ -19,9 +19,7 @@
 #include "wx/panel.h"
 #include "wx/stockitem.h"
 
 #include "wx/panel.h"
 #include "wx/stockitem.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
-#endif
 
 #include "wx/mac/uma.h"
 // Button
 
 #include "wx/mac/uma.h"
 // Button
@@ -44,7 +42,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& lbl,
     m_label = label ;
 
     Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
     m_label = label ;
 
     Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
-    m_peer = new wxMacControl() ;
+    m_peer = new wxMacControl(this) ;
     if ( id == wxID_HELP )
     {
         ControlButtonContentInfo info ;
     if ( id == wxID_HELP )
     {
         ControlButtonContentInfo info ;