40 FXIMPLEMENT(
MFXCheckableButton, FXButton, MFXCheckableButtonMap, ARRAYNUMBER(MFXCheckableButtonMap))
43 const FXString& text, FXIcon* ic,
44 FXObject* tgt, FXSelector sel,
46 FXint x, FXint y, FXint w, FXint h,
47 FXint pl, FXint pr, FXint pt, FXint pb)
48 : FXButton(p, text, ic, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb),
49 myAmChecked(amChecked), myAmInitialised(false) {
75 return FXButton::onPaint(sender, sel, data);
85 long ret = FXButton::onUpdate(sender, sel, data);
102 options &= (0xffffffff - (FRAME_SUNKEN | FRAME_SUNKEN | FRAME_THICK));
107 if (state == STATE_ENGAGED) {
108 options |= FRAME_SUNKEN | FRAME_THICK;
110 options |= FRAME_SUNKEN;
116 if (state == STATE_ENGAGED) {
117 options |= FRAME_RAISED | FRAME_THICK;
119 options |= FRAME_RAISED;