- if (bitmap.Ok())
- {
- Pixmap p1, p2;
-
- p1 = (Pixmap) ((wxBitmap&)bitmap).GetLabelPixmap(m_mainWidget);
- p2 = (Pixmap) ((wxBitmap&)bitmap).GetInsensPixmap(m_mainWidget);
-
- if(p1 == p2) // <- the Get...Pixmap()-functions return the same pixmap!
- {
- p2 =
- XCreateInsensitivePixmap(DisplayOfScreen(XtScreen(buttonWidget)), p1);
- m_insensPixmap = (WXPixmap) p2;
- }
-
- XtVaSetValues (buttonWidget,
- XmNlabelPixmap, p1,
- XmNlabelInsensitivePixmap, p2,
- XmNarmPixmap, (Pixmap) ((wxBitmap&)bitmap).GetArmPixmap (m_mainWidget),
- XmNlabelType, XmPIXMAP,
- NULL);
- }