35FXIMPLEMENT(
MFXCheckableButton, FXButton, MFXCheckableButtonMap, ARRAYNUMBER(MFXCheckableButtonMap))
38 const
std::
string& 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.c_str(), ic, tgt, sel, opts, x, y, w, h, pl, pr, pt, pb),
42 myAmChecked(amChecked), myAmInitialised(false),
43 myStaticToolTip(staticToolTip) {
62 FXButton::onCheck(
nullptr, 0,
nullptr);
64 FXButton::onUncheck(
nullptr, 0,
nullptr);
76 return FXButton::onPaint(sender, sel, ptr);
86 return FXButton::onUpdate(sender, sel, ptr);
94 return FXButton::onEnter(sender, sel, ptr);
102 return FXButton::onLeave(sender, sel, ptr);
110 return FXButton::onMotion(sender, sel, ptr);
126 options &= (0xffffffff - (FRAME_SUNKEN | FRAME_SUNKEN | FRAME_THICK));
131 if (state == STATE_ENGAGED) {
132 options |= FRAME_SUNKEN | FRAME_THICK;
134 options |= FRAME_SUNKEN;
140 if (state == STATE_ENGAGED) {
141 options |= FRAME_RAISED | FRAME_THICK;
143 options |= FRAME_RAISED;