comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Widget motion event in data coordinates?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Widget motion event in data coordinates? [message #402] Thu, 27 August 1992 13:04
sullivan is currently offline  sullivan
Messages: 2
Registered: August 1992
Junior Member
I want to print out the lat-lon coordinates of the mouse moving
within a draw widget. The event handler sends the coordinates in
device coordinates. How do I convert device coordinates to data
(lat-lon) coordinates? I use the cursor procedure but it slows the
program down.
Thanks, dan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Dan Sullivan # Laboratory for Terrestrial Physics (STX)
# Code 920.2
sullivan@gorgo.gsfc.nasa.gov # NASA-Goddard Space Flight Center
# Greenbelt, MD 20771
# voice: (301) 286-2484
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: Widget motion event in data coordinates? [message #550 is a reply to message #402] Thu, 27 August 1992 12:06 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
In article <1992Aug27.130439@gorgo.gsfc.nasa.gov>, sullivan@gorgo.gsfc.nasa.gov (Dan sullivan) writes...
>
> I want to print out the lat-lon coordinates of the mouse moving
> within a draw widget. The event handler sends the coordinates in
> device coordinates. How do I convert device coordinates to data
> (lat-lon) coordinates? I use the cursor procedure but it slows the
> program down.

The command

CONVERT_COORD,X,Y,/DEVICE,/TO_DATA

should do the trick.

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: HELP: Density of Points on Scatterplot
Next Topic: Giant crosshairs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:19:37 PDT 2025

Total time taken to generate the page: 0.96133 seconds