33 FXIMPLEMENT(
MFXCheckableButton, FXButton, MFXCheckableButtonMap, ARRAYNUMBER(MFXCheckableButtonMap))
36 const FXString& text, FXIcon* ic,
37 FXObject* tgt, FXSelector sel,
39 FXint x, FXint y, FXint w, FXint h,
40 FXint pl, FXint pr, FXint pt, FXint pb) :
41 FXButton(p, text, ic, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb),
42 myAmChecked(amChecked), myAmInitialised(false) {
68 return FXButton::onPaint(sender, sel, data);
78 long ret = FXButton::onUpdate(sender, sel, data);
95 options &= (0xffffffff - (FRAME_SUNKEN | FRAME_SUNKEN | FRAME_THICK));
100 if (state == STATE_ENGAGED) {
101 options |= FRAME_SUNKEN | FRAME_THICK;
103 options |= FRAME_SUNKEN;
109 if (state == STATE_ENGAGED) {
110 options |= FRAME_RAISED | FRAME_THICK;
112 options |= FRAME_RAISED;