Persistent TeeChart Color Palette
Posted: Mon Oct 03, 2011 8:20 pm
If the default color palette is something other than TeeChart (index value 0), the persistent save/load of the chart will not use the TeeChart color palette, but rather the default color palette. For example, do the following:
1. Set the design default palette to Opera.
2. Load a chart for design (LoadChartFromStream).
3. Change the Color Palette in the Themes to TeeChart, and then Apply. The changes are made to the chart.
4. Save the chart from design (SaveChartToStream).
When the chart is reloaded for use, the Color Palette for the chart will be Opera.
It is not possible to use the TeeChart palette consistently unless the default Color Palette is TeeChart. This value is the only one that behaves this way, and I suspect it is because it has an index value of 0 in the list.
1. Set the design default palette to Opera.
2. Load a chart for design (LoadChartFromStream).
3. Change the Color Palette in the Themes to TeeChart, and then Apply. The changes are made to the chart.
4. Save the chart from design (SaveChartToStream).
When the chart is reloaded for use, the Color Palette for the chart will be Opera.
It is not possible to use the TeeChart palette consistently unless the default Color Palette is TeeChart. This value is the only one that behaves this way, and I suspect it is because it has an index value of 0 in the list.