I need help with Annotation.Callout's
Posted: 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:-))
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:-))