// Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap );
-IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
-
wxBitmapButton::wxBitmapButton()
{
m_marginX = m_marginY = wxDEFAULT_BUTTON_MARGIN;
if( size.y != -1 ) best.y = size.y;
PostCreation();
- DoSetBitmap();
+ OnSetBitmap();
AttachWidget (parent, m_mainWidget, (WXWidget) NULL,
pos.x, pos.y, best.x, best.y);
wxDoChangeBackgroundColour(m_mainWidget, m_backgroundColour, true);
// Must reset the bitmaps since the colours have changed.
- DoSetBitmap();
+ OnSetBitmap();
}
wxSize wxBitmapButton::DoGetBestSize() const