Page 1 of 1

Drag mark position does not update when zooming out

Posted: Fri Oct 03, 2008 1:29 pm
by 13050248
I'm using:
TeeChart.NET version 3
Build 3.5.3188.18562

In the Feature demo "Welcome !\Tools\Drag Marks".
1. Zoom into a mark.
2. Move the mark.
3. Zoom out.

The mark's position did not update, but stays where I moved it to.

Posted: Fri Oct 03, 2008 1:39 pm
by narcis
Hi Christo.

This is because marks are set to an absolute position. For this to work they should be set to a position relative to any chart object (series points, axes, title, legend, etc.).

An alternative is using Annotation tools as Edu suggested here.

You could also set custom marks position as shown on this thread and refresh their position on Zoom and Scroll events as in Edu's example.

Hope this helps!