X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09219654cd18705e833f93e888b347ab6d1b8494..2efd54a41b12a5977713c837c585d89f35a13d14:/src/osx/bmpbuttn_osx.cpp diff --git a/src/osx/bmpbuttn_osx.cpp b/src/osx/bmpbuttn_osx.cpp index c79f4fd47c..9a1cb174ca 100644 --- a/src/osx/bmpbuttn_osx.cpp +++ b/src/osx/bmpbuttn_osx.cpp @@ -22,6 +22,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton) + #include "wx/osx/private.h" //--------------------------------------------------------------------------- @@ -37,8 +38,8 @@ bool wxBitmapButton::Create( wxWindow *parent, { m_macIsUserPane = false; - if ( !wxControl::Create( parent, id, pos, size, style | wxBU_NOTEXT, - validator, name ) ) + if ( !wxBitmapButtonBase::Create(parent, id, pos, size, style, + validator, name) ) return false; if ( style & wxBU_AUTODRAW ) @@ -61,17 +62,6 @@ bool wxBitmapButton::Create( wxWindow *parent, return true; } -void wxBitmapButton::DoSetBitmap(const wxBitmap& bitmap, State which) -{ - wxBitmapButtonBase::DoSetBitmap(bitmap, which); - - // we don't support any other states currently - if ( which == State_Normal ) - { - m_peer->SetBitmap( bitmap ); - } -} - wxSize wxBitmapButton::DoGetBestSize() const { wxSize best(m_marginX, m_marginY);