Mouse Events...

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

Questions about motif? Contact us

2 posts / 0 new
Last post
Mouse Events...

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

Anonymous

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.