Stop TCursorTool from moving off the chart.

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
AMS
Newbie
Newbie
Posts: 24
Joined: Wed Mar 31, 2004 5:00 am
Location: South Africa
Contact:

Stop TCursorTool from moving off the chart.

Post by AMS » Mon Dec 13, 2004 9:47 am

Hi,
[Background Info]
At run time I create a TCursorTool object (I dont assign a series to it). I then place it at its relevant position... all works fine. Then when I zoom in and/or scroll, the cursor moves off the axis but is stilll visible on the chart.

[Problem]
1) Why does the cursor still draw itself once greater than the axis maximum or minimum values.
2) How could I correct this?

John.

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

Post by Narcís » Mon Dec 13, 2004 12:47 pm

Hi John,

I've been able to reproduce this behaviour. It makes sense what you request and I have added it to our wish list for future releases.

Meanwhile you can implement it yourself using the OnScroll and OnZoom chart events. There you can get the cursor X and Y values and making them not visible or whatever you need to do when they are out of the axis range.
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