]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/bmpbuttn.h
simplify wxEVT_MENU_OPEN/CLOSE generation
[wxWidgets.git] / include / wx / cocoa / bmpbuttn.h
index d75f85654a304fb33491e4710a6f8d1dd4529751..b26b75a15e08ba18c6c43fa99417149e88d2d6f7 100644 (file)
@@ -4,9 +4,9 @@
 // Author:      David Elliott
 // Modified by:
 // Created:     2003/03/16
-// RCS-ID:      $Id:
+// RCS-ID:      $Id$
 // Copyright:   (c) 2003 David Elliott
-// Licence:    wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef __WX_COCOA_BMPBUTTN_H__
@@ -54,6 +54,9 @@ protected:
 // Implementation
 // ------------------------------------------------------------------------
 public:
+    // The wxButton::DoGetBestSize is not correct for bitmap buttons
+    wxSize DoGetBestSize() const
+    {   return wxButtonBase::DoGetBestSize(); }
 };
 
 #endif // __WX_COCOA_BMPBUTTN_H__