Nearest Point Tool (V3)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
JayG
Newbie
Newbie
Posts: 71
Joined: Mon Sep 04, 2006 12:00 am

Nearest Point Tool (V3)

Post by JayG » 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

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Thu Aug 09, 2007 8:40 am

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.
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Post Reply