Nearest Point Tool (V3)
Posted: Wed Aug 08, 2007 4:28 pm
TChart Version: 3.2.2763.26084 Evaluation
VB 2005 Express Edition Version: 8.0.50727.762 (SP.050727-7600)
My code for TChart version 2 uses the Nearest Point tool. My Dim statement is:
Public WithEvents NPTool As Steema.TeeChart.Tools.NearestPoint
My code to implement it is:
NPTool = New Steema.TeeChart.Tools.NearestPoint()
NPTool.Chart = TChart1.Chart
(with other code to set the series, color, shape, etc.)
In version 3, I had to change the implementation code to:
NPTool = New Steema.TeeChart.Tools.NearestPoint(TChart1.Chart)
Otherwise, NPTool.Point remained at -1, and nothing was drawn on the chart.
So, it works, but the chart has to be included in the New statement instead of setting the chart property later.
Jay
VB 2005 Express Edition Version: 8.0.50727.762 (SP.050727-7600)
My code for TChart version 2 uses the Nearest Point tool. My Dim statement is:
Public WithEvents NPTool As Steema.TeeChart.Tools.NearestPoint
My code to implement it is:
NPTool = New Steema.TeeChart.Tools.NearestPoint()
NPTool.Chart = TChart1.Chart
(with other code to set the series, color, shape, etc.)
In version 3, I had to change the implementation code to:
NPTool = New Steema.TeeChart.Tools.NearestPoint(TChart1.Chart)
Otherwise, NPTool.Point remained at -1, and nothing was drawn on the chart.
So, it works, but the chart has to be included in the New statement instead of setting the chart property later.
Jay