- // TODO
-}
-
-void wxBitmapCheckBox::SetSize(int x, int y, int width, int height, int sizeFlags)
-{
- // TODO
-}
-
-void wxBitmapCheckBox::SetValue(bool val)
-{
- // TODO
-}
-
-bool wxBitmapCheckBox::GetValue() const
-{
- // TODOD
- return FALSE;
-}
-
-void wxCheckBoxCallback (Widget w, XtPointer clientData,
- XtPointer ptr)
-{
- wxCheckBox *item = (wxCheckBox *) clientData;
- // TODO
- // if (item->inSetValue)
- // return;
-
- wxCommandEvent event (wxEVT_COMMAND_CHECKBOX_CLICKED, item->GetId());
- event.SetInt((int) item->GetValue ());
- event.SetEventObject(item);
- item->ProcessCommand (event);
+ wxComputeColours (XtDisplay((Widget) m_mainWidget), & m_backgroundColour,
+ (wxColour*) 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);
+
+ int selectPixel = wxBLACK->AllocColour(wxGetDisplay());
+
+ // 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);