44 FXint x, FXint y, FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb) :
45 FXButton(p, text, ic,
nullptr, 0, opts, x, y, w, h, pl, pr, pt, pb),
46 myStaticToolTip(staticToolTip) {
57 FXEvent* ev = (FXEvent*)ptr;
58 FXDCWindow dc(
this, ev);
59 FXint tw = 0, th = 0, iw = 0, ih = 0, tx, ty, ix, iy;
60 dc.setForeground(backColor);
61 dc.fillRectangle(0, 0, width, height);
63 tw = labelWidth(label);
64 th = labelHeight(label);
67 iw = icon->getWidth();
68 ih = icon->getHeight();
70 just_x(tx, ix, tw, iw);
71 just_y(ty, iy, th, ih);
73 dc.drawIcon(icon, ix, iy);
77 dc.setForeground(textColor);
78 drawLabel(dc, label, hotoff, tx, ty, tw, th);
80 drawFrame(dc, 0, 0, width, height);