Page 1 of 1

Themes and Series Colors

Posted: Thu Mar 24, 2005 6:50 pm
by 9336214
Is there anyway to know what color a chart theme will use? I have two issues:

I currently set the series colors manually but want to use the theme colors. Occationally I have two pie chart's showing and they may have a different number of slices, the slices from the same category need to have the same color.

How can I achieve this with themes?

Thanks
Ed Dressel

Posted: Tue Mar 29, 2005 3:50 pm
by Pep
Hi Ed,

you can check the palette color using similar code to the following:
(in this case for Excel theme) :

Code: Select all

ThemeColor := ExcelPalette[x];
Where ExcelPalette is a constant Array of Chart.pas.

Posted: Tue Mar 29, 2005 10:42 pm
by 9336214
>ThemeColor := ExcelPalette[x];

thanks, but without searching through the source code, how do I know which palette is being used with which theme?

Thanks
Ed Dressel