TDragPointTool always favoures the "left" point
Posted: Fri Apr 25, 2014 3:26 pm
Hi!
I'm using a TChart with one LineSeries and a TDragPointTool but grapping the series and moving the point (I just allow moving it in Y-direction) always uses the point left of the mouse-position (in the example image, if you grap the series one pixel to the left of the y:0-mark you begin to move the y:-1 mark!!).
I think it would be good to have an option to either restrain the drag-operation to the mark itself or center the sensitiv area over a point (eg.: -0.5 to 0.5 move the y:0-mark).
I'm also missing an option to restrict movement beyond some values (like the minima/maxima of the left axis in the example). Maybe an OnDragPointAllow(Sender, Index, Var Cancel: Boolean) - event could be implemented?
I'm using a TChart with one LineSeries and a TDragPointTool but grapping the series and moving the point (I just allow moving it in Y-direction) always uses the point left of the mouse-position (in the example image, if you grap the series one pixel to the left of the y:0-mark you begin to move the y:-1 mark!!).
I think it would be good to have an option to either restrain the drag-operation to the mark itself or center the sensitiv area over a point (eg.: -0.5 to 0.5 move the y:0-mark).
I'm also missing an option to restrict movement beyond some values (like the minima/maxima of the left axis in the example). Maybe an OnDragPointAllow(Sender, Index, Var Cancel: Boolean) - event could be implemented?