We use the TChart editor to allow our users to change the theme as follows:
Code: Select all
Procedure TForm1.ChangeTheme;
var
tmpClass:TChartThemeClass;
begin
tmpClass:=TChartThemeClass(ChartThemeSelector(Chart));
ChartThemeIndx := ChartThemes.IndexOf(tmpClass);
//Save ChartThemeIndex
…
Code: Select all
ApplyChartTheme(ChartThemes.Theme[ChartThemeIndx],Chart, -1);
How do I record what custom setting was selected in the editor and then restore that custom setting? Is there a better way to record the selected custom and standard theme and then restore it?
Thanks,
Dave