Page 1 of 1

Can change IAnnotationTool.Callout arrow color in code?

Posted: Fri Feb 23, 2007 9:27 am
by 9081534
I have an annotation with a callout arrow and can change the color of it in the editor via Callout->Pointer->Pattern->Color, but can't see where to do this in code. We use ActiveX 6.
Thanks

Posted: Fri Feb 23, 2007 10:11 am
by yeray
Hi ellab_user,
You should do something like following:

Code: Select all

TChart1.Tools.Items(0).asAnnotation.Callout.Brush.color = vbRed

Posted: Fri Feb 23, 2007 10:55 am
by 9081534
We are using TeeChart ActiveX 6 in C#, and I don't get .Brush after Callout. Why?

Posted: Fri Feb 23, 2007 11:24 am
by narcis
Hi ellab_user,

Works fine here using the code below with TeeChart Pro v6.0.0.6 in Visual Studio 2005. Does this work fine at your end? Which TeeChart version are you using?

Code: Select all

axTChart1.Tools.get_Items(0).asAnnotation.Callout.Brush.Color = axTChart1.Series(0).Color;

Posted: Fri Feb 23, 2007 12:02 pm
by 9081534
Doesn't complĂ­le...."'TeeChart.IAnnotationCallout' does not contain a definition for 'Brush'".
We have Version 6.0.0.4

Posted: Fri Feb 23, 2007 12:09 pm
by narcis
Hi ellab_user,

Could you please uninstall v6.0.0.4, download the latest version available at the client area, install it and check if it works fine at your end?

If the problem persists please send us a simple example project we can run "as-is" to reproduce the problem here. You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Fri Feb 23, 2007 12:46 pm
by 9081534
Yes - 6.0.0.6 works - Thanks!

p.s.-Is the newest version 6.0.0.7 or 6.0.1.1?

Posted: Fri Feb 23, 2007 12:56 pm
by narcis
Hi ellab_user,

I'm glad to hear that.

v6.0.0.6 is the latest full version installer but v6.0.1.1 is the latest maintenance update release.