[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

2369.0. "Finding cursor position" by SWAM2::GONZALEZ_LU () Wed Feb 28 1990 00:00

    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.RTitleUserPersonal
Name
DateLines
2369.1PossibleHKOVC::TERENCEFrom Middlesex, UWOWed Feb 28 1990 01:3210
    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.2THANKSSWAM2::GONZALEZ_LUThu Mar 01 1990 10:054
    Thanks Terry,  that's exactly what I was lokking for. 
    I'll give a shot.
    
    Luz