fixed previous revision: call wxControl's, not wxButton's DoGetBestSize

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2004-10-18 13:13:39 +00:00
parent c6fbe2f0c8
commit e0aeebed0a
4 changed files with 12 additions and 0 deletions

View File

@ -68,6 +68,7 @@ public:
protected:
virtual void OnSetBitmap();
virtual wxSize DoGetBestSize() const;
void Init();

View File

@ -68,6 +68,7 @@ public:
protected:
virtual void OnSetBitmap();
virtual wxSize DoGetBestSize() const;
void Init();

View File

@ -263,6 +263,11 @@ void wxBitmapButton::OnSetBitmap()
}
}
wxSize wxBitmapButton::DoGetBestSize() const
{
return wxControl::DoGetBestSize();
}
bool wxBitmapButton::Enable( bool enable )
{
if ( !wxWindow::Enable(enable) )

View File

@ -263,6 +263,11 @@ void wxBitmapButton::OnSetBitmap()
}
}
wxSize wxBitmapButton::DoGetBestSize() const
{
return wxControl::DoGetBestSize();
}
bool wxBitmapButton::Enable( bool enable )
{
if ( !wxWindow::Enable(enable) )