Can annotations be 'locked' to the chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Snarkle
Newbie
Newbie
Posts: 91
Joined: Wed Jun 30, 2010 12:00 am

Can annotations be 'locked' to the chart

Post by Snarkle » Mon Sep 06, 2010 6:53 am

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.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Can annotations be 'locked' to the chart

Post by Yeray » Tue Sep 07, 2010 3:33 pm

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).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply