m_font = parent->GetFont();
ChangeFont(FALSE);
- SetCanAddEventHandler(TRUE);
-
wxSize actualSize(size);
// work around the cases where the bitmap is a wxNull(Icon/Bitmap)
if (actualSize.x == -1)
wxBitmap newBitmap = wxCreateMaskedBitmap(m_messageBitmapOriginal, col);
m_messageBitmap = newBitmap;
- pixmap = (Pixmap) m_messageBitmap.GetPixmap();
+ pixmap = (Pixmap) m_messageBitmap.GetDrawable();
}
else
- pixmap = (Pixmap) m_messageBitmap.GetLabelPixmap(widget);
+ {
+ m_bitmapCache.SetBitmap( m_messageBitmap );
+ pixmap = (Pixmap)m_bitmapCache.GetLabelPixmap(widget);
+ }
XtVaSetValues (widget,
XmNlabelPixmap, pixmap,
wxWindow::ChangeBackgroundColour();
// must recalculate the background colour
+ m_bitmapCache.SetColoursChanged();
DoSetBitmap();
}
void wxStaticBitmap::ChangeForegroundColour()
{
+ m_bitmapCache.SetColoursChanged();
wxWindow::ChangeForegroundColour();
}