Page 1 of 1
TeeCommander has File save but no File load
Posted: Thu Jan 05, 2006 7:27 pm
by 9238362
There is a file Save button on the TeeCommander bar but there is no corresponding File Load button. My customer wants to save his chart data and be able to load it back up and view it interactivly later in the same tool. How can I add the Load feature?
Posted: Mon Jan 09, 2006 9:58 am
by narcis
Hi Banjovi,
Save and Load features can be easily implemented using something like:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
LoadChartfromFile(TCustomChart(DBChart1),OpenDialog1.FileName);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
if SaveDialog1.Execute then
SaveChartToFile(DBChart1,SaveDialog1.FileName,DataCheckBox.Checked);
end;