- if (m_buttonBitmapSelected.Ok())
- armPixmap = (Pixmap) m_buttonBitmapSelected.GetLabelPixmap(m_mainWidget);
+ pixmap = (Pixmap) m_buttonBitmap.GetPixmap();
+ }
+ else
+ pixmap = (Pixmap) m_buttonBitmap.GetLabelPixmap(m_mainWidget);
+
+ if (m_buttonBitmapDisabledOriginal.Ok())
+ {
+ if (m_buttonBitmapDisabledOriginal.GetMask())
+ {
+ int backgroundPixel;
+ XtVaGetValues((Widget) m_mainWidget, XmNbackground, &backgroundPixel,
+ NULL);
+
+ wxColour col;
+ col.SetPixel(backgroundPixel);
+
+ wxBitmap newBitmap = wxCreateMaskedBitmap(m_buttonBitmapDisabledOriginal, col);
+ m_buttonBitmapDisabled = newBitmap;
+
+ insensPixmap = (Pixmap) m_buttonBitmapDisabled.GetPixmap();
+ }
+ else
+ insensPixmap = (Pixmap) m_buttonBitmap.GetInsensPixmap(m_mainWidget);
+ }