[CursorTool] Problem when axis.startposition > 0

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

[CursorTool] Problem when axis.startposition > 0

Post by bertrod » Wed Dec 13, 2006 9:24 am

Hello,

I noticed a strange behaviour :

1. I reduce a vertical axis by setting its startPosition to 50
2. I add the "Axis Arrows" tool and move the serie to the top of the chart, meaning the serie is upper than the top of the axis
3. I add a cursorTool linked to this serie, with the property Snap = true

=> the cursor will not follow the serie because of the limit set by the top of the axis

Illustration :
Image


This is not really a "bug", but I think it's not really the expected behaviour. Is there a simple way to avoid this problem and make the cursor follow the serie even if the axis is reduced ?

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Dec 18, 2006 4:01 pm

Hi,

the only way I can think of would be to use the OnChange event of the CursorTool to know the axis pos of the cursor and change the axis min/max when the cursor pos is at the top of the axis.

Post Reply