Page 1 of 1
Setting Grid.Visible is neither saved nor loaded
Posted: Fri Jun 12, 2009 11:29 am
by 10547179
Hi,
i using delphi 2007 and TeeChart 8.05
I am running an application, which allows the user to customize the chart, saving it and reloading it.
It seems that the information "show grid lines" is not be saved - or loaded?
What to do?
Thanks
Mike
Re: Setting Grid.Visible is neither saved nor loaded
Posted: Fri Jun 12, 2009 1:35 pm
by yeray
Hi Mike,
Could you please send us a simple example project we can run as-is here to reproduce the problem here? I've tested with the following code and everything seems to work as expected:
Code: Select all
uses series, teestore;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.AddSeries(TLineSeries.Create(self));
Chart1[0].FillSampleValues(25);
Chart1.Axes.Bottom.Grid.Visible := false;
SaveChartToFile(Chart1, 'C:\test.tee',true,true);
Chart1.ClearChart;
end;
procedure TForm1.Button1Click(Sender: TObject);
var tmpChart: TCustomChart;
begin
tmpChart := TChart.Create(self);
LoadChartFromFile(tmpChart, 'C:\test.tee');
Chart1 := tmpChart as TChart;
Chart1.Parent := Self;
end;
Note that you can now attach your files directly to this forums.
Re: Setting Grid.Visible is neither saved nor loaded
Posted: Sun Jun 14, 2009 10:02 am
by 10547179
Hi,
thank you. I found the error. It was my mistake.
best regards
mike