Page 1 of 1

Can annotations be 'locked' to the chart

Posted: Mon Sep 06, 2010 6:53 am
by 8751509
Greetings,

I have been playing with Annotations and RectangleTool trying to add text annotations to my chart.
I can't see a way to 'lock' them to the chart ... i.e. Annotate a point of interest on the chart ... a highest high or lowest low etc.

Right now if I scroll the chart the annotations remain stationary, wheras I need them to scroll with the chart.

Is there a way to do this ??

If not is there another way of getting text onto the chart area ...

Cheers Phil.

Re: Can annotations be 'locked' to the chart

Posted: Tue Sep 07, 2010 3:33 pm
by yeray
Hi Snarkle,

You have to recalculate the annotation position (with CalcXPos anc CalcYPos methods) every time the chart is repainted (AfterDraw event) or scrolled, or zoomed,...
This is because the annotation tool position is expressed in absolute terms (number of pixels counting from the Left Top of the Chart).