button = XtVaCreateWidget("toggleButton",
xmToggleButtonWidgetClass, (Widget) m_mainWidget,
XmNx, currentX, XmNy, currentY,
- // XmNpushButtonEnabled, True,
+ XmNindicatorOn, False,
+ XmNshadowThickness, 2,
+ XmNborderWidth, 0,
+ XmNspacing, 0,
+ XmNmarginWidth, 0,
+ XmNmarginHeight, 0,
XmNmultiClick, XmMULTICLICK_KEEP,
XmNlabelType, XmPIXMAP,
NULL);
wxColour col;
col.SetPixel(backgroundPixel);
- wxBitmap newBitmap = wxCreateMaskedBitmap(bmp, col);
+ bmp = wxCreateMaskedBitmap(bmp, col);
- tool->SetBitmap1(newBitmap);
+ tool->SetBitmap1(bmp);
}
// Create a selected/toggled bitmap. If there isn't a 2nd
tool->SetPixmap(pixmap2);
XtVaSetValues (button,
- XmNindicatorOn, False,
- XmNshadowThickness, 2,
- // XmNborderWidth, 0,
- // XmNspacing, 0,
- XmNmarginWidth, 0,
- XmNmarginHeight, 0,
XmNfillOnSelect, True,
XmNlabelPixmap, pixmap,
XmNselectPixmap, pixmap2,