06-14-2005 06:44 AM
07-15-2005 08:10 AM
Hello Thomas!
I built a small example program to test this and I am not sure if it can be considered a bug or not. When zooming the mouse coordinates remains the same even though its position compared to the other objects of course changes and I assume that you would like to have the mouse position changed when the other objects resizes. Is that correct?
Regards,
Jimmie A.
Applications Engineer, National Instruments
07-15-2005 09:52 AM
I agree with Jimmie. I don't consider this "not correct".
To quote from the help for this property:
Position is a cluster of (Vertical, Horizontal) coordinates... Mouse position is relative to the picture control origin.
The "origin" is the top left visible pixel. The mouse property returns the cursor cooridnates for the control, not the pixel number in the picture. If you want to get that, you need to calculate it using the formula you gave.
07-15-2005 09:57 AM
01-17-2006 06:25 PM
05-08-2013 12:33 PM
It works perfectly!!!
Thanks