32 FXIMPLEMENT(
MFXCheckableButton, FXButton, MFXCheckableButtonMap, ARRAYNUMBER(MFXCheckableButtonMap))
35 const FXString& text, FXIcon* ic,
36 FXObject* tgt, FXSelector sel,
38 FXint x, FXint y, FXint w, FXint h,
39 FXint pl, FXint pr, FXint pt, FXint pb) :
40 FXButton(p, text, ic, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb),
41 myAmChecked(amChecked), myAmInitialised(false) {
67 return FXButton::onPaint(sender, sel, data);
77 long ret = FXButton::onUpdate(sender, sel, data);
94 options &= (0xffffffff - (FRAME_SUNKEN | FRAME_SUNKEN | FRAME_THICK));
99 if (state == STATE_ENGAGED) {
100 options |= FRAME_SUNKEN | FRAME_THICK;
102 options |= FRAME_SUNKEN;
108 if (state == STATE_ENGAGED) {
109 options |= FRAME_RAISED | FRAME_THICK;
111 options |= FRAME_RAISED;