37 FXint x, FXint y, FXint w, FXint h, FXint pl, FXint pr, FXint pt, FXint pb) :
38 FXButton(p, text, ic,
nullptr, 0, opts, x, y, w, h, pl, pr, pt, pb),
39 myStaticToolTip(staticToolTip) {
50 FXEvent* ev = (FXEvent*)ptr;
51 FXDCWindow dc(
this, ev);
52 FXint tw = 0, th = 0, iw = 0, ih = 0, tx, ty, ix, iy;
53 dc.setForeground(backColor);
54 dc.fillRectangle(0, 0, width, height);
56 tw = labelWidth(label);
57 th = labelHeight(label);
60 iw = icon->getWidth();
61 ih = icon->getHeight();
63 just_x(tx, ix, tw, iw);
64 just_y(ty, iy, th, ih);
66 dc.drawIcon(icon, ix, iy);
70 dc.setForeground(textColor);
71 drawLabel(dc, label, hotoff, tx, ty, tw, th);
73 drawFrame(dc, 0, 0, width, height);