[Lazarus] TAChart DataPointCrossHairTool

2014-09-21 Thread Leonardo M. Ramé
Hi, I'm playing with the DataPointCrossHairTool, and I would like to know if it's possible to display the horizontal line on cursor's position, instead as the default data point value. If mean, for example, my points are: 1: 10 2: 20 3: 30 When the mouse cursor is between 20 and 10, say 13

[Lazarus] TAChart DataPointCrossHairTool

2014-09-21 Thread Werner Pamler
Hi, I'm playing with the DataPointCrossHairTool, and I would like to know if it's possible to display the horizontal line on cursor's position, instead as the default data point value. Not 100% sure, but I believe that this tool always snaps to the data points. An alternative would be to add a

Re: [Lazarus] TAChart DataPointCrossHairTool

2014-09-21 Thread Leonardo M. Ramé
On 21/09/14 11:56, Werner Pamler wrote: Hi, I'm playing with the DataPointCrossHairTool, and I would like to know if it's possible to display the horizontal line on cursor's position, instead as the default data point value. Not 100% sure, but I believe that this tool always snaps to the data

[Lazarus] TAChart DataPointCrossHairTool

2014-09-21 Thread Werner Pamler
To convert image coordinates (pixels within the chart rectangle which you, indeed, can obtain from the global mouse position converted to the local chart pixels) to graph coordinates you call the chart methods * XImageToGraph(x:Integer): Double for x coordinates, * YImageToGraph(y:Integer):

Re: [Lazarus] TAChart DataPointCrossHairTool

2014-09-21 Thread Leonardo M. Ramé
On 21/09/14 16:54, Werner Pamler wrote: To convert image coordinates (pixels within the chart rectangle which you, indeed, can obtain from the global mouse position converted to the local chart pixels) to graph coordinates you call the chart methods * XImageToGraph(x:Integer): Double for x