Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
I have a customer who wants to display an image and also be able to keep track (or be notified) of when and where the mouse is clicked on the image. Is this possible using DECWINDOWS? Is there something in DECwindows or Xlib that will return the coordinates of where the mouse was clicked? Thanks for any information, Luz
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2369.1 | Possible | HKOVC::TERENCE | From Middlesex, UWO | Wed Feb 28 1990 01:32 | 10 |
Specify ButtonPress as the event mask when you create the window. Let say you have the following declaration: XEvent event; event.xbutton.x and event.xbutton.y will be the coordinates of where the mouse was clicked. -Terry | |||||
2369.2 | THANKS | SWAM2::GONZALEZ_LU | Thu Mar 01 1990 10:05 | 4 | |
Thanks Terry, that's exactly what I was lokking for. I'll give a shot. Luz |