Grabbing mouse events

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

Questions about motif? Contact us

2 posts / 0 new
Last post
Grabbing mouse events

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??

squeen

XtAddEventHandler( w, EnterWindowMask, FALSE, yourCallback, NULL );
XtAddEventHandler( w, ButtonPressMask|OwnerGrabButtonMask, FALSE, yourCallabck, NULL );
etc.