Пример #1
0
IconButton::IconButton(std::string name, Panel* panel)
{
  widget = XmCreateIconButton(panel->getWidget(), (char*)name.c_str(), NULL, 0);
  XtAddCallback(widget, XmNactivateCallback, activateCallback, this);
  //XtAddCallback(widget, XmNarmCallback, armCallback, this);
  //XtAddCallback(widget, XmNdisarmCallback, disarmCallback, this);
  XtManageChild(widget);
}
Пример #2
0
Widget XmCreateIconButton_TNK(Widget parent, String name, ArgList arglist,Cardinal argcount) { return XmCreateIconButton(parent, name, arglist, argcount);}