Which is the easiest way to save a user's custom changes to a chart?
eg. at the moment they can fire up the editor at run time and make changes to the colour scheme, position of legend, etc. I'd like to offer them the option to save that as their default layout when they restart the program, so I'd like to do something like:
// After executing editor
if MessageDlg('Make this your default layout and colour scheme?',mtConfirmation,[mbYes,mbNo],0) = mrYes then
Chart1.SavePrefsToFile(SomePath);
// on reloading the form
if FileExists(SomePath) then
Chart1.LoadPrefsFromFile(SomePath);
Thanks,
Richard
Easiest way to save user settings
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Richard,
Yes, this is possible using TeeChart template file format. For more information please read Tutorial 12 - Exporting and Importing Charts.
You'll find the tutorials at TeeChart's program group.
Yes, this is possible using TeeChart template file format. For more information please read Tutorial 12 - Exporting and Importing Charts.
You'll find the tutorials at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Richard,
In that case you'll find the tutorials at TeeChart7Manual.chm in somewhere like C:\Program Files\Steema Software\TeeChart 707 for Delphi 7\Docs.
Hope this helps!
In that case you'll find the tutorials at TeeChart7Manual.chm in somewhere like C:\Program Files\Steema Software\TeeChart 707 for Delphi 7\Docs.
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |