Text Outline on Annotation Tool

TeeChart for ActiveX, COM and ASP
Post Reply
Simon
Newbie
Newbie
Posts: 9
Joined: Thu Nov 27, 2003 5:00 am
Location: UK
Contact:

Text Outline on Annotation Tool

Post by Simon » Thu Aug 19, 2004 7:58 am

At design time I can see how to add an outline to the text in an annotation tool by clicking on Outline under the Text tab - this brings up a Border Editor dialog.

However, I need to add the tool at run-time and cannot see any option (under .Tools.Items(0).asAnnotation.Shape) that will allow me to switch the outline on.

Am I looking in completely the wrong place and being a general pleb?

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Thu Aug 19, 2004 9:19 am

Hi Simon,
Am I looking in completely the wrong place and being a general pleb?
As a Teecharter, being a general pleb is out of the question :D

Try:

Code: Select all

With TChart1
    .Tools.Add tcAnnotate
    .Tools.Items(0).asAnnotation.Shape.Font.Outline.Visible = True
    .Tools.Items(0).asAnnotation.Shape.Font.Outline.Width = 2
    .Tools.Items(0).asAnnotation.Text = "HELLO"
End With
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Simon
Newbie
Newbie
Posts: 9
Joined: Thu Nov 27, 2003 5:00 am
Location: UK
Contact:

Post by Simon » Thu Aug 19, 2004 10:46 am

Plebs rejoice - problem solved! That's where I had been looking for the outline option but it turns out I was running v6.0.0.3 - upgrading to the latest release results in Microsoft IntelliSense (an oxymoron if ever I've seen one!) showing the "Outline" option under "Font".

Thanks for your help. :)
-----------------------------
www.ppvote.com - interactive voting in PowerPoint

Post Reply