34 FXIMPLEMENT(
MFXCheckableButton, FXButton, MFXCheckableButtonMap, ARRAYNUMBER(MFXCheckableButtonMap))
37 const FXString& text, FXIcon* ic,
38 FXObject* tgt, FXSelector sel,
40 FXint x, FXint y, FXint w, FXint h,
41 FXint pl, FXint pr, FXint pt, FXint pb)
42 : FXButton(p, text, ic, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb),
43 myAmChecked(amChecked), myAmInitialised(false) {
69 return FXButton::onPaint(sender, sel, data);
79 long ret = FXButton::onUpdate(sender, sel, data);
96 options &= (0xffffffff - (FRAME_SUNKEN | FRAME_SUNKEN | FRAME_THICK));
101 if (state == STATE_ENGAGED) {
102 options |= FRAME_SUNKEN | FRAME_THICK;
104 options |= FRAME_SUNKEN;
110 if (state == STATE_ENGAGED) {
111 options |= FRAME_RAISED | FRAME_THICK;
113 options |= FRAME_RAISED;