Cross Hair with X,Y Display

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Cross Hair with X,Y Display

Post by nbp » Wed Jan 14, 2009 5:33 pm

Is there a code example that I can use to view the Cross Hair Cursor with X,Y values displayed as the mouse moves around the chart?

Thanks.

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

Post by Narcís » Thu Jan 15, 2009 8:37 am

Hi nbp,

There's an interpolation example here:

http://www.teechart.net/support/viewtopic.php?t=4161

You can also just use CursorTool's OnChange event and draw an Annotation tool or use TChart1.Canvas.TextOut method to display desired text. An example can be found at this VCL thread. Same applies to the ActiveX version.

Hope this helps.
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