#include "wx/dcmemory.h"
#endif
-IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
-
-
#include "wx/osx/private.h"
//---------------------------------------------------------------------------
const wxValidator& validator,
const wxString& name )
{
- m_macIsUserPane = false;
-
+ DontCreatePeer();
+
if ( !wxBitmapButtonBase::Create(parent, id, pos, size, style,
validator, name) )
return false;
m_bitmaps[State_Normal] = bitmap;
- m_peer = wxWidgetImpl::CreateBitmapButton( this, parent, id, bitmap, pos, size, style, GetExtraStyle() );
+ SetPeer(wxWidgetImpl::CreateBitmapButton( this, parent, id, bitmap, pos, size, style, GetExtraStyle() ));
MacPostControlCreate( pos, size );