TCursorTool does not return ValueIndex

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
petrodata
Newbie
Newbie
Posts: 1
Joined: Mon Jan 31, 2005 5:00 am
Location: Aberdeen, Scotland

TCursorTool does not return ValueIndex

Post by petrodata » Fri Feb 11, 2005 11:42 am

I have added the event, TCursorToolChangeEvent to my code and set the tool to series1. This then fires the event when I move the cursor on the chart but the ValueIndex is always -1.

How do I get this to indicate which record I am pointing to?

I need this to be able to extract the YValue's for each of the lines in my chart.

Thanks
Dave...

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Feb 11, 2005 12:06 pm

Hi Dave,

That's because you have to set the Chart Tool Snap property to true or else it is not pointing to an exact point.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply