git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29965
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
protected:
virtual void OnSetBitmap();
- virtual wxSize DoGetBestSize() const;
void Init();
protected:
virtual void OnSetBitmap();
- virtual wxSize DoGetBestSize() const;
void Init();
}
}
-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) )
}
}
-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) )