Saving and loading of user settings
Posted: Mon Jul 02, 2007 1:22 pm
Since years we are using import.loadfromfile and export.savetofile to load and save user settings.
We wonder if there is not a better method for this.
We work as follows:
- we have 2 teechart objects on a form: TC and TCCopy
- suppose, TC is displayed with some data
- user now wants to see TC with other data
- at that moment we work as follows
a) save TC to hard disk
b) load saved chart into TCCopy
c) zorder(0) TCCopy
d) changes new data in TC, user can not see the changes because TC is behind TCCopy
e) zorder(0) TC when TC is ready
Using this method, our users, don't see the (ugly) rebuilding of the chart
Changes are down in a second
Has somebody any recommandation?
We tried with autorepaint=false, but autorepaint is always true when import is used.
Kind Regards
We wonder if there is not a better method for this.
We work as follows:
- we have 2 teechart objects on a form: TC and TCCopy
- suppose, TC is displayed with some data
- user now wants to see TC with other data
- at that moment we work as follows
a) save TC to hard disk
b) load saved chart into TCCopy
c) zorder(0) TCCopy
d) changes new data in TC, user can not see the changes because TC is behind TCCopy
e) zorder(0) TC when TC is ready
Using this method, our users, don't see the (ugly) rebuilding of the chart
Changes are down in a second
Has somebody any recommandation?
We tried with autorepaint=false, but autorepaint is always true when import is used.
Kind Regards