TeeCommander has File save but no File load

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Banjovi
Newbie
Newbie
Posts: 11
Joined: Thu Sep 22, 2005 4:00 am

TeeCommander has File save but no File load

Post by Banjovi » Thu Jan 05, 2006 7:27 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jan 09, 2006 9:58 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply