Page 1 of 1

Let user save his TeeCommander settings?

Posted: Tue Jun 16, 2009 12:31 pm
by 10052955
Hello,

I included a TeeCommander Toolbar in my application to give the user the possibility to customize his chart in detail, as he likes.
Since there the toolbar allows for a vast variety of changes, I look for a way to give the user the chance to save his settings.
Does there exist one?

Would be great if someone could help.

Re: Let user save his TeeCommander settings?

Posted: Tue Jun 16, 2009 1:15 pm
by yeray
Hi Windwalker,

First of all, note that TeeCommander wasn't thought for the end user use, but for programmers testing. And that's why this component isn't as customizable as some customers expect. On the other hand, most tabs and setting windows that the editor shows, can be called individually so you can create your own custom controls allowing some characteristics and not the others.

Finally, note that TeeCommander shows and allows you to change chart's properties at runtime, so the changes made at runtime by code will be present in the commander. So I'm not sure to understand you what do you mean with "the chance to save his settings".

Re: Let user save his TeeCommander settings?

Posted: Tue Jun 16, 2009 1:31 pm
by yeray
Hi Windwalker,

As an update, if what you want is to save the chart characteristics at a moment and store them in a another moment, you can save a chart into a tee file or a stream and load it later.

Re: Let user save his TeeCommander settings?

Posted: Tue Jun 16, 2009 1:45 pm
by 10052955
Yeray, thanks for your quick answer.

Let me explain my intend a bit further.

I showed my application with TeeCommander to my boss and he thought we might keep this in the program, in order to allow an end user, who is willing to go into depth with the application's charts, to use TeeCommander as a backdoor to customize the charts in many more ways, than possible in the first instance by the application.

Now lets say, a user has made several customizations.
Is ist possible to save do disk, which customizations were made, in order to restore them, the next time the user opens the chart?


But, figuring out your answer, where you state that TeeCommander is not intended for end user usage, I suppose such a feature is not included.
Please correct me, if I am wrong.

Re: Let user save his TeeCommander settings?

Posted: Tue Jun 16, 2009 1:57 pm
by 10052955
Yeray wrote:Hi Windwalker,

As an update, if what you want is to save the chart characteristics at a moment and store them in a another moment, you can save a chart into a tee file or a stream and load it later.
If you mean "restore them in another moment", then that's what I mean.

The characteristics can be saved using the Save-Button in TeeCommander.
How can they be restored?

Re: Let user save his TeeCommander settings?

Posted: Tue Jun 16, 2009 2:09 pm
by yeray
Hi Windwalker,

Yes, you can save your chart to disk in a .tee file and load it later in the same application or another. Take a look at Tutorial 12 - Exporting and Importing Charts (You should find tutorials and example demos at TeeChart's programs group).

You should have a button that calls LoadChartToFile function as in the tutorial.