Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Where's the pointer? Message-ID: <8812201318.AA23709@EXPO.LCS.MIT.EDU> Date: 20 Dec 88 13:18:46 GMT References: <10504@umn-cs.CS.UMN.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 10 How do I tell where the pointer is within my widget when this happens, and how do I tell what button was pushed? Look at the Intrinsics documentation on callbacks (e.g. Section 5.1 in the HP documentation). The third argument to the callback, call_data, will for the case of the XtNselect callback be the triggering X event; you can look inside the event for the button number and the pointer position. I couldn't directly find the call_data documented in the HP stuff, I peeked at the source.