+ Widget widget = (Widget) m_mainWidget;
+ int x, y, w1, h1, w2, h2;
+
+ GetPosition(&x, &y);
+
+ if (bitmap.Ok())
+ {
+ w2 = bitmap.GetWidth();
+ h2 = bitmap.GetHeight();
+ XtVaSetValues (widget,
+ XmNlabelPixmap, ((wxBitmap&)bitmap).GetLabelPixmap (widget),
+ XmNlabelType, XmPIXMAP,
+ NULL);
+ GetSize(&w1, &h1);
+
+ if (! (w1 == w2) && (h1 == h2))
+ SetSize(x, y, w2, h2);
+ }
+ else
+ {
+ // Null bitmap: must not use current pixmap
+ // since it is no longer valid.
+ XtVaSetValues (widget,
+ XmNlabelType, XmSTRING,
+ XmNlabelPixmap, XmUNSPECIFIED_PIXMAP,
+ NULL);
+ }
+}
+
+void wxStaticBitmap::ChangeFont(bool keepOriginalSize)
+{
+ wxWindow::ChangeFont(keepOriginalSize);
+}
+
+void wxStaticBitmap::ChangeBackgroundColour()
+{
+ wxWindow::ChangeBackgroundColour();
+}
+
+void wxStaticBitmap::ChangeForegroundColour()
+{
+ wxWindow::ChangeForegroundColour();