Submitted by Anonymous on Wed, 01/23/2002 - 11:42. Developers
Hi,
I have created push buttons and the code is
XmString text = XmStringCreateLocalized("F8");
eight=XtVaCreateManagedWidget(value,
xmPushButtonWidgetClass,parent,
XmNbottomAttachment,XmATTACH_OPPOSITE_WIDGET,
XmNbottomWidget, *last,
XmNleftAttachment,XmATTACH_WIDGET,
XmNleftWidget,*last,
XmNwidth,getcolpixel(WIDTH1),
XmNheight,getrowpixel(HEIGHT1),
XmNaccelerator,"F8",
XmNacceleratorText,text,
NULL);
XtAddCallback(eight,XmNactivateCallback,activateexit,NULL);
but I am finding that after pressing F8 also it is not doing the
required functionality . I have also used a call
back function but in vain it does not work when I
press the F8 key.
Can some body help me.
I suspect that the window manager already has a passive grab on that key, so your application won`t get it.