+ if (!m_backgroundColour.Ok())
+ return;
+
+ wxComputeColours (XtDisplay((Widget) m_mainWidget), & m_backgroundColour,
+ NULL);
+
+ XtVaSetValues ((Widget) m_mainWidget,
+ XmNbackground, g_itemColors[wxBACK_INDEX].pixel,
+ XmNtopShadowColor, g_itemColors[wxTOPS_INDEX].pixel,
+ XmNbottomShadowColor, g_itemColors[wxBOTS_INDEX].pixel,
+ XmNforeground, g_itemColors[wxFORE_INDEX].pixel,
+ NULL);
+
+ wxColour colour = *wxBLACK;
+ WXPixel selectPixel = colour.AllocColour(XtDisplay((Widget)m_mainWidget));
+
+ // Better to have the checkbox selection in black, or it's
+ // hard to determine what state it is in.
+ XtVaSetValues ((Widget) m_mainWidget,
+ XmNselectColor, selectPixel,
+ NULL);