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

Home » Public Forums » archive » Cursor-position/mouse-pointer offset problem on IDL+Windows7
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
Cursor-position/mouse-pointer offset problem on IDL+Windows7 [message #87105] Tue, 07 January 2014 11:51 Go to next message
kagoldberg is currently offline  kagoldberg
Messages: 26
Registered: November 2012
Junior Member
I'm wondering if anyone has seen/solved this issue with Windows7.

With a widget_draw, object-graphics window on a Windows7 machine, the position of the system's mouse pointer is offset significantly (over 100 pixels) from the position that IDL thinks the cursor is at, based on event.x and event.y? This is with 1:1 scaling, in the model. The problem only comes up on one of my Windows7 installs, running IDL as a virtual machine. It has not been seen on Mac OS X or other Windows7 installs.

To diagnose the problem, I read the cursor XY position and place a small star symbol position reported in (event.x, event.y). According to my colleague using the VM, it was working fine before the holiday break, and now (with no changes to my IDL code) they are seeing this offset. The offset persists after a machine reboot.

I'm wondering if it could be related to their small screen size. My widget is slightly larger horizontally than the pixel width of their monitor, so they shift the IDL window back and forth, left to right.

For what it's worth, on the troubled system, when they interact with other widget objects, like buttons and lists, the system cursor accurately corresponds to the correct position. The problem is only within a WIDGET_DRAW graphic.

Any help is appreciated.
Re: Cursor-position/mouse-pointer offset problem on IDL+Windows7 [message #87107 is a reply to message #87105] Tue, 07 January 2014 20:28 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
kagoldberg@lbl.gov writes:

> I'm wondering if anyone has seen/solved this issue with Windows7.
>
> With a widget_draw, object-graphics window on a Windows7 machine, the position of the system's mouse pointer is offset significantly (over 100 pixels) from the position that IDL thinks the cursor is at, based on event.x and event.y? This is with 1:1 scaling, in the model. The problem only comes up on one of my Windows7 installs, running IDL as a virtual machine. It has not been seen on Mac OS X or other Windows7 installs.
>
> To diagnose the problem, I read the cursor XY position and place a small star symbol position reported in (event.x, event.y). According to my colleague using the VM, it was working fine before the holiday break, and now (with no changes to my IDL code) they are seeing this offset. The offset persists after a machine reboot.
>
> I'm wondering if it could be related to their small screen size. My widget is slightly larger horizontally than the pixel width of their monitor, so they shift the IDL window back and forth, left to right.
>
> For what it's worth, on the troubled system, when they interact with other widget objects, like buttons and lists, the system cursor accurately corresponds to the correct position. The problem is only within a WIDGET_DRAW graphic.
>
> Any help is appreciated.

It sounds to me like you have a scrollable draw widget for some reason.
I believe (not tested) that event.x and event.y will apply to the entire
drawable area, and not just to the area exposed by the viewport. But, if
you were looking at the viewport it would appear as if you were getting
large offsets.

Don't know for sure. I'd have to see it, I guess.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Overplot extends beyond xrange
Next Topic: Missing value and Image size in Image, Function Graphic

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

Current Time: Wed Oct 08 13:36:26 PDT 2025

Total time taken to generate the page: 0.00715 seconds