+ Widget parentWidget = (Widget) parent->GetClientWidget();
+
+ m_mainWidget = (WXWidget) XtVaCreateManagedWidget ("staticBitmap",
+#if USE_GADGETS
+ xmLabelGadgetClass, parentWidget,
+#else
+ xmLabelWidgetClass, parentWidget,
+#endif
+ XmNalignment, XmALIGNMENT_BEGINNING,
+ NULL);
+
+ XtVaSetValues ((Widget) m_mainWidget,
+ XmNlabelPixmap, (Pixmap) ((wxBitmap&)bitmap).GetLabelPixmap (m_mainWidget),
+ XmNlabelType, XmPIXMAP,
+ NULL);
+
+ m_font = parent->GetFont();
+ ChangeFont(FALSE);
+
+ SetCanAddEventHandler(TRUE);
+
+ wxSize actualSize(size);
+ if (actualSize.x == -1)
+ actualSize.x = bitmap.GetWidth();
+ if (actualSize.y == -1)
+ actualSize.y = bitmap.GetHeight();
+ AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, actualSize.x, actualSize.y);
+
+ ChangeBackgroundColour ();
+
+ return TRUE;