]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/button.cpp
don't let MacIsReallyShown climb over toplevel windows, otherwise tlws with invisible...
[wxWidgets.git] / src / mac / carbon / button.cpp
index aaf91f644e701b99b9ed2075f72b261e9d39aab8..82e4e34c5f29f54f0d4dffe91a19694863dc01d0 100644 (file)
@@ -25,8 +25,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
 #include "wx/mac/uma.h"
 // Button
 
-static const int kMacOSXHorizontalBorder = 1 ;
-static const int kMacOSXVerticalBorder = 1 ;
+static const int kMacOSXHorizontalBorder = 2 ;
+static const int kMacOSXVerticalBorder = 4 ;
 
 bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
            const wxPoint& pos,
@@ -34,6 +34,9 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
            const wxValidator& validator,
            const wxString& name)
 {
+    if ( !wxButtonBase::Create(parent, id, pos, size, style, validator, name) )
+        return false;
+
     Rect bounds ;
     Str255 title ;