I need help with Annotation.Callout's

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Craigr
Newbie
Newbie
Posts: 4
Joined: Tue Aug 31, 2004 4:00 am
Contact:

I need help with Annotation.Callout's

Post by Craigr » Tue Feb 07, 2006 11:46 am

Thanks for your help!

I'm trying to place a small annotation box with 3 txt chars in it pointing to a specific point on a Fastline preferably with a line and arrow head. The following code is what I have so far.

for(int t = 0;t < shaftpts.Count-1;++t)
{
ycoord = this.FlChartTrace[0].CalcYPos((int)this.shaftpts[t]);
xcoord = this.FlChartTrace[0].CalcXPos((int)this.shaftpts[t]);

Note[t] = new Steema.TeeChart.Tools.Annotation();
Note[t].Callout.ArrowHeadSize = 5;
Note[t].Callout.Distance = 50;
Note[t].Callout.XPosition = xcoord;
Note[t].Callout.YPosition = ycoord;
Note[t].Text = (string)this.shaftTxt[t];

this.tChart2.Tools.Add(Note[t]);
}

With the above code I Have boxs and text, but in no specfic posistion on the screen and there is not a line or an arrow head pointing to anything.
Any Ideas ???

Craig R

5:-))

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Feb 08, 2006 10:01 am

Hi Craigr,

For en example on how to do that you could look at the All Features\Welcome !\Tools\Annotation Callout example in the TeeChart features demo, available at its program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply