Page 1 of 1

Changes in Themes

Posted: Wed Apr 06, 2011 4:34 pm
by 16658606
HI,
I have noticed that the default color palette theme in TeeChart 2010 is "Opera", whereas in TeeChart 7 it was "Default".
This issue has is currently blocking us from upgrading to TeeChart2010.

Currently we are calling SetTheme after the constructor, but before LoadFromFile. It seems sometimes it overrides the default, and sometimes it doesnt.
axTChart1.SetTheme(TeeChart.EChartTheme.ctDefault, TeeChart.EColorPalette.cpTeeChart);
axTChart1.Import.LoadFromFile(this.openFileDialog1.FileName);

(I can provide example tee files if necessary - please send me an email address to respond to)

1. Please can you tell me the all the exact differences between the defaults of charts created in TeeChart 7 vs 2010.
2. How is it possible to convert the contents of a ".tee" to a user readable format so that I can see all the attributes easily?
3. There is a SetTheme method, but no GetTheme method. How can I do the equivalent of GetTheme?

Thanks.

Re: Changes in Themes

Posted: Thu Apr 07, 2011 8:07 am
by 16658606
How can you change just the TeeChart.EColorPalette, without changing the TeeChart.EChartTheme ?
This is possible via the user interface, via setting the EColorPalette to "current", however it is not clear how to do this via the code, since there is no "Current" value within the EColorPalette enum.

Re: Changes in Themes

Posted: Thu Apr 07, 2011 8:08 am
by narcis
Hi Arieh,
1. Please can you tell me the all the exact differences between the defaults of charts created in TeeChart 7 vs 2010.
We don't have such a list. You could look at the version info page for changes documented in v8 and v2010.
2. How is it possible to convert the contents of a ".tee" to a user readable format so that I can see all the attributes easily?
Yes, you can convert *.tee files to *.txt using ConvertTeeFileToText, for example:

Code: Select all

      axChart.Export.ConvertTeeFileToText(fileName, TextFile);
3. There is a SetTheme method, but no GetTheme method. How can I do the equivalent of GetTheme?
This feature is not yet available, once the theme has been applied it cannot be consulted. The only way would be to save it manually when the user selects it.