Mouse cursor position [message #19218] |
Fri, 03 March 2000 00:00 |
Jonathan Belisle
Messages: 1 Registered: March 2000
|
Junior Member |
|
|
Hi,
I'm new with IDL and I'm trying to find the mouse cursor position in the
screen. I've try the cursor function but it return the mouse position in
the active window.
Anyone can help me ?
Thanks in advance.
Jonathan
|
|
|
Re: Mouse cursor position [message #19220 is a reply to message #19218] |
Thu, 02 March 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Jonathan Belisle (jbelislenotthis@gpa.qc.ca) writes:
> I'm new with IDL and I'm trying to find the mouse cursor position in the
> screen. I've try the cursor function but it return the mouse position in
> the active window.
>
> Anyone can help me ?
Nope. The best you can do is find the cursor in an IDL
graphics window. Although in draw widgets you can
*drag* the cursor out of the window and get the
current display location (relative to the location
where you started the drag) when you release the button.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|