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

Home » Public Forums » archive » Cursor Position with Draw Widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Cursor Position with Draw Widget [message #3097 is a reply to message #3090] Wed, 02 November 1994 20:04 Go to previous messageGo to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <398t20$6im@agate.berkeley.edu>, ganga@physics14 (Ken Ganga) writes:
> Hi,
>
> I'm trying to figure out how to return the cursor position from an
> event in a draw widget. I want the coordinates to be in data
> coordinates. This seems to be possible for a regular graphics window
> through the cursor command, but I can't figure out how to do it within
> a draw widget as the documentation says not to use the cursor command.
>

You can get the cursor position in DEVICE coordinates and then convert to DATA
coordinates with:

result = CONVERT_COORD(x, y, /device, /to_data)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with Exclusive Button Widgets under IDL for Windows (V3.6.1)
Next Topic: .AVI reader in IDL

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

Current Time: Tue Dec 02 11:23:20 PST 2025

Total time taken to generate the page: 2.72693 seconds