Page 1 of 1

New chart at runtime

Posted: Wed Nov 11, 2009 12:26 pm
by 13052926
Hi

I need to be able to create a new instance of my chart at runtime. This is relatively straightforward in VB.NET by simply doing this:
Dim chart As New Steema.TeeChart.TChart
Me.Controls.Add(chart)

However this new instance has all the Steema defaults set, whereas my default chart is quite different. (Backcolour, borders, axes etc, etc)

Question is: is there a quick way to get my newly instantiated chart control to my defaults?

Re: New chart at runtime

Posted: Wed Nov 11, 2009 12:48 pm
by narcis
Hi rossmc,

Yes, you can save your chart to a native TeeChart template (*.ten) or you can use custom themes. For more information on TeeChart templates please read Tutorial 12 - Exporting and Importing Charts. For custom themes please have a look at the All Features\Welcome !\Themes\Custom Themes example in the features demo. Tutorials and demo are available at TeeChart's program group.

Hope this helps!