Mapping buttons to F1,F2...F8 keys

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Mapping buttons to F1,F2...F8 keys

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.

ICS_support

I suspect that the window manager already has a passive grab on that key, so your application won`t get it.