Questions about motif? Contact us
Submitted by Anonymous on Wed, 08/28/2002 - 13:16. Developers How do I capture mouse events? In particular Right mouse events on Forms, etc...
Thanks. C. Lamb
use XtAddEventHandler to suitable widget / widgets then in the call back function pick up the button event with
XButtonPressedEvent *fred = (XbuttonPressedEvent *) ( third arg as XEvent pointer)
then if(fred->button == 3) this is the right mouse button.
Trust this helps.
use XtAddEventHandler to suitable widget / widgets then in the call back function pick up the button event with
XButtonPressedEvent *fred = (XbuttonPressedEvent *) ( third arg as XEvent pointer)
then if(fred->button == 3) this is the right mouse button.
Trust this helps.