View Single Post
  #1   Spotlight this post!  
Unread 28-11-2009, 17:01
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Trouble with mouse location on pictures

I'm trying to use the mouse to draw rectangles on a Picture indicator.
However, the mouse coordinates are not corresponding consistently to the Rectangle coordinates, and I can't seem to make sense of it.

Here's a video demonstrating the problem.
http://screencast.com/t/Yzg1YTViYWUt
While you can't see whether I'm clicking or not, every short diagonal movement is a click-and-drag action.
(In one of them, I believe the rectangle it made was actually outside the picture).


Is there anything wrong with my code?

(Note:
I am using the Picture control, not at IMAQ image. This code is not intended to run on the cRIO, and probably won't be usable within the FRC Framework)
Attached Files
File Type: vi Picture properties.vi (34.1 KB, 35 views)
__________________
-- Marshal Horn
Reply With Quote