]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/osx/button.h
adding bestsize for osx_cocoa combobox
[wxWidgets.git] / include / wx / osx / button.h
index 8959d9b14200c3a1d3de8c7363bbf035b6b7c78c..5b189fc940fb1a14fbb7635cdca0229081aaf9c5 100644 (file)
@@ -65,6 +65,7 @@ protected:
     {
         m_marginX = x;
         m_marginY = y;
+        InvalidateBestSize();
     }
     
     // the margins around the bitmap
@@ -89,7 +90,7 @@ public:
              const wxString& label = wxEmptyString,
              const wxPoint& pos = wxDefaultPosition,
              const wxSize& size = wxDefaultSize,
-             long style = 0,
+             long style = wxBORDER_NONE,
              const wxValidator& validator = wxDefaultValidator,
              const wxString& name = wxButtonNameStr)
     {
@@ -101,7 +102,7 @@ public:
                 const wxString& label = wxEmptyString,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
-                long style = 0,
+                long style = wxBORDER_NONE,
                 const wxValidator& validator = wxDefaultValidator,
                 const wxString& name = wxButtonNameStr);