+ if (m_buttonBitmapSelectedOriginal.GetMask())
+ {
+ int backgroundPixel;
+ XtVaGetValues((Widget) m_mainWidget, XmNarmColor, &backgroundPixel,
+ NULL);
+
+ wxColour col;
+ col.SetPixel(backgroundPixel);
+
+ wxBitmap newBitmap = wxCreateMaskedBitmap(m_buttonBitmapSelectedOriginal, col);
+ m_buttonBitmapSelected = newBitmap;
+
+ armPixmap = (Pixmap) m_buttonBitmapSelected.GetPixmap();
+ }
+ else
+ armPixmap = (Pixmap) m_buttonBitmap.GetArmPixmap(m_mainWidget);
+ }
+ else
+ armPixmap = (Pixmap) m_buttonBitmap.GetArmPixmap(m_mainWidget);
+
+ if (insensPixmap == pixmap) // <- the Get...Pixmap()-functions return the same pixmap!
+ {
+ insensPixmap =
+ XCreateInsensitivePixmap(DisplayOfScreen(XtScreen((Widget) m_mainWidget)), pixmap);