Page 1 of 1

Nearest Point Tool (V3)

Posted: Wed Aug 08, 2007 4:28 pm
by 9792387
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

Posted: Thu Aug 09, 2007 8:40 am
by 9348258
Hi Jay

Thanks for letting us know, I could reproduce the issue here and this seems to be a bug. I've added it (TF02012387) to our defect list to be fixed for future releases. In the meantime you should to use your second possibility.

Please be aware at this forum for new release announcements and what's fixed/implemented on them.