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:-))
I need help with Annotation.Callout's
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |