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();
}