I have a MDI application and the MDI Child is only a form with a chart (Align = clClient).
I create a new MDI Child and change the size of the window (because of the alignment the chart will be resized, too).
Now I call this:
Code: Select all
SaveChartToFile(TfrChild(frMain.ActiveMDIChild).Chart1,
'Test.lov',
True,
True);
Now I close the MDI Child and open a new MDI child window. The size is set back to the default size.object TChart
Left = 0
Top = 0
Width = 426
Height = 286
Title.Text.Strings = (
'TChart')
Align = alClient
TabOrder = 0
end
Now I load back the TEE File:
Code: Select all
LoadChartFromFile(TCustomChart(TfrChild(frMain.ActiveMDIChild).Chart1),
'Test.lov');
So what must I do in order to get the correct saved chart size automatically?
I tried to set the AutoSize property to true, but this won´t help.
Any suggestions?