IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
+
#include "wx/osx/private.h"
//---------------------------------------------------------------------------
{
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 )
return true;
}
-void wxBitmapButton::SetBitmapLabel( const wxBitmap& bitmap )
-{
- InvalidateBestSize();
-
- m_peer->SetBitmap( bitmap );
-}
-
wxSize wxBitmapButton::DoGetBestSize() const
{
wxSize best(m_marginX, m_marginY);