]> git.saurik.com Git - wxWidgets.git/commitdiff
wxBitmapButton doesn't need own DoGetBestSize, wxControl's one works (fixes sizing...
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 18 Oct 2004 12:38:21 +0000 (12:38 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 18 Oct 2004 12:38:21 +0000 (12:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/bmpbuttn.h
include/wx/gtk1/bmpbuttn.h
src/gtk/bmpbuttn.cpp
src/gtk1/bmpbuttn.cpp

index f4d71460df7ae126d2d614ae116f73ebcb7e62fc..473991447b3d8748012bf32ff5451049430b78b8 100644 (file)
@@ -68,7 +68,6 @@ public:
 
 protected:
     virtual void OnSetBitmap();
-    virtual wxSize DoGetBestSize() const;
 
     void Init();
 
index f4d71460df7ae126d2d614ae116f73ebcb7e62fc..473991447b3d8748012bf32ff5451049430b78b8 100644 (file)
@@ -68,7 +68,6 @@ public:
 
 protected:
     virtual void OnSetBitmap();
-    virtual wxSize DoGetBestSize() const;
 
     void Init();
 
index 55b275d0bbd14640befda1a0dce737788130797f..7b51da0f9d3b0a5bbdc7ee6ba6ede75144cecf33 100644 (file)
@@ -263,20 +263,6 @@ void wxBitmapButton::OnSetBitmap()
     }
 }
 
-wxSize wxBitmapButton::DoGetBestSize() const
-{
-    wxSize best;
-    
-    if (m_bmpNormal.Ok())
-    {
-        int border = HasFlag(wxNO_BORDER) ? 4 : 10;
-        best.x = m_bmpNormal.GetWidth()+border;
-        best.y = m_bmpNormal.GetHeight()+border;
-    }
-    CacheBestSize(best);
-    return best;
-}
-
 bool wxBitmapButton::Enable( bool enable )
 {
     if ( !wxWindow::Enable(enable) )
index 55b275d0bbd14640befda1a0dce737788130797f..7b51da0f9d3b0a5bbdc7ee6ba6ede75144cecf33 100644 (file)
@@ -263,20 +263,6 @@ void wxBitmapButton::OnSetBitmap()
     }
 }
 
-wxSize wxBitmapButton::DoGetBestSize() const
-{
-    wxSize best;
-    
-    if (m_bmpNormal.Ok())
-    {
-        int border = HasFlag(wxNO_BORDER) ? 4 : 10;
-        best.x = m_bmpNormal.GetWidth()+border;
-        best.y = m_bmpNormal.GetHeight()+border;
-    }
-    CacheBestSize(best);
-    return best;
-}
-
 bool wxBitmapButton::Enable( bool enable )
 {
     if ( !wxWindow::Enable(enable) )