35FXIMPLEMENT(
MFXCheckableButton, FXButton, MFXCheckableButtonMap, ARRAYNUMBER(MFXCheckableButtonMap))
38 const FXString& text, FXIcon* ic, FXObject* tgt, FXSelector sel,
39 FXuint opts, 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),
43 myStaticToolTip(staticToolTip) {
69 return FXButton::onPaint(sender, sel, ptr);
79 long ret = FXButton::onUpdate(sender, sel, ptr);
88 return FXButton::onEnter(sender, sel, ptr);
96 return FXButton::onLeave(sender, sel, ptr);
104 return FXButton::onMotion(sender, sel, ptr);
120 options &= (0xffffffff - (FRAME_SUNKEN | FRAME_SUNKEN | FRAME_THICK));
125 if (state == STATE_ENGAGED) {
126 options |= FRAME_SUNKEN | FRAME_THICK;
128 options |= FRAME_SUNKEN;
134 if (state == STATE_ENGAGED) {
135 options |= FRAME_RAISED | FRAME_THICK;
137 options |= FRAME_RAISED;