Page 1 of 1

I need help with Annotation.Callout's

Posted: Tue Feb 07, 2006 11:46 am
by 8728784
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:-))

Posted: Wed Feb 08, 2006 10:01 am
by narcis
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.