|
Re: GUI: locating mouse on graph indicator
Looks like a) the coordinates for Plot Bounds are Panel-relative, rather than control-relative, so you're accounting for the control offset twice and b) since the mouse coordinate origin is at the top-left, the offset/scaling for the y-axis is reversed. The version I've attached seems to work.
--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
|