Submitted by kpak82 on Thu, 11/09/2006 - 01:31. General Questions
Hi,
I am writting an application that needs to know when a mouse event occurs. I have tried to use XtAddEventHandler() but that only worked if mouse events occured within the specified widget. My application is interested in all mouse events.
Any Help??
XtAddEventHandler( w, EnterWindowMask, FALSE, yourCallback, NULL );
XtAddEventHandler( w, ButtonPressMask|OwnerGrabButtonMask, FALSE, yourCallabck, NULL );
etc.