spa%hara.fctunl.rccn.pt@MITVMA.MIT.EDU (Salvador Pinto Abreu) (09/29/88)
I came across a case (I'm writing a C-Prolog interface to Xt/Xaw)
where I'd like to perform something similar to what the 'MenuPopup'
action does, with some added and changed functionality (ie. I want to
specify where the popup is to appear and I have to specify the popup
_not_ by its name but by its address (as an decimal string)). By using
'MenuPopup' it seemed to work as I wanted, but when I tried to write
an action procedure similar to _XtMenuPopupAction() [the implementor
of 'MenuPopup()'] it wouldn't work (the button grab simply wasn't
done).
After digging for a while I had to duplicate the code for
_XtRegisterGrabs() [in TMstate.c], to check for my action procs.
This is by no means a clean approach: are there any plans to declare
an action proc as a "grabber", in a more general way?
---
Salvador Pinto Abreu BITNET/Internet: spa@hara.fctunl.rccn.pt
or: FCT_SPA@PTIFM.BITNET
UUCP: ...{mcvax,inria}!inesc!unl!spa PSI/VMS: PSI%(+268)05010310::SPA
ARPA: spa%hara.fctunl.rccn.pt@mitvma.mit.edu Phone: (+351) (1) 295-4464 x.0560
Snail: Dept. de Informatica, Universidade Nova de Lisboa
2825 Monte Caparica, PORTUGAL