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.
Can annotations be 'locked' to the chart
Re: Can annotations be 'locked' to the chart
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).
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).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |