41 FXIMPLEMENT(
MFXCheckableButton, FXButton, MFXCheckableButtonMap, ARRAYNUMBER(MFXCheckableButtonMap))
44 const FXString& text, FXIcon* ic,
45 FXObject* tgt, FXSelector sel,
47 FXint x, FXint y, FXint w, FXint h,
48 FXint pl, FXint pr, FXint pt, FXint pb)
49 : FXButton(p, text, ic, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb),
50 myAmChecked(amChecked), myAmInitialised(false) {
76 return FXButton::onPaint(sender, sel, data);
86 long ret = FXButton::onUpdate(sender, sel, data);
103 options &= (0xffffffff - (FRAME_SUNKEN | FRAME_SUNKEN | FRAME_THICK));
108 if (state == STATE_ENGAGED) {
109 options |= FRAME_SUNKEN | FRAME_THICK;
111 options |= FRAME_SUNKEN;
117 if (state == STATE_ENGAGED) {
118 options |= FRAME_RAISED | FRAME_THICK;
120 options |= FRAME_RAISED;