+ if (but_setting_wid)
+ {
+ XColor bg;
+ XtVaGetValues(but_setting_wid,
+ XtVaTypedArg, XmNbackground, XtRColor, &bg, sizeof(bg),
+ NULL);
+ return wxColor(bg.red >> 8, bg.green >> 8, bg.blue >> 8);
+ }
+ else
+ {
+ return wxColour("LIGHT GREY");
+ }