Page 1 of 1

ChartEdit Tools and Annotation

Posted: Wed Apr 10, 2013 3:48 am
by 16559177
C++ XE3, TeeChart Pro v2012.07.121105

These are newly discovered problem, but not sure what version of C++ or TeeChart it happened.

First:

Create a new form, put TChart and TChartEditor on it. Run. Call the editor and the Tools option is missing.

Include VCLTee.TeeTools.hpp. No help.
add #pragma link "VCLTee.TeeTools" and the Tools tab appears.

Do I now need to add these manually when I include the ChartEditor?

Second problem, more important:

At run time, under Tools / Annotation there is no edit panel for entering or editing text. it is completely blank.
At design time, this feature works and annotations can be edited

Re-installed TeeChart. No help.

Is there a new setting that I am missing to enable Annotation editing?

My users need to edit annotations in the app at runtime.

Thanks in advance.

Kevin

Re: ChartEdit Tools and Annotation

Posted: Wed Apr 10, 2013 2:56 pm
by yeray
Hi Kevin,
kjm wrote:First:

Create a new form, put TChart and TChartEditor on it. Run. Call the editor and the Tools option is missing.

Include VCLTee.TeeTools.hpp. No help.
add #pragma link "VCLTee.TeeTools" and the Tools tab appears.

Do I now need to add these manually when I include the ChartEditor?
Right. I think this happened also in TeeChart VCL v8. Are you sure it was different with any version?
kjm wrote:Second problem, more important:

At run time, under Tools / Annotation there is no edit panel for entering or editing text. it is completely blank.
At design time, this feature works and annotations can be edited

Re-installed TeeChart. No help.

Is there a new setting that I am missing to enable Annotation editing?

My users need to edit annotations in the app at runtime.
Add this too:

Code: Select all

#pragma link "VCLTee.TeeAnnToolEdit"

Re: ChartEdit Tools and Annotation

Posted: Wed Apr 10, 2013 3:59 pm
by 16564574
Thanks for the quick response.

Apps and code from 2011 shows tools enabled and runtime annotation editing with none of those includes or pragma links, so they must have been automatic at one time.

Also, can you explain how to add more export options to TChartEditor at runtime? PDF, specifically.

Is there any support documentation on these topics? The help files are not much help

Thanks again

Re: ChartEdit Tools and Annotation

Posted: Thu Apr 11, 2013 8:02 am
by yeray
Hi,
kmanuele wrote:Apps and code from 2011 shows tools enabled and runtime annotation editing with none of those includes or pragma links, so they must have been automatic at one time.
It would be helpful if you could tell us what exact TeeChart version was the one that showed these tabs without needing to add the mentioned includes/pragma links.
kmanuele wrote:Also, can you explain how to add more export options to TChartEditor at runtime? PDF, specifically.
The exportation dialog to PDF is defined in TeePDFCanvas.
kmanuele wrote:Is there any support documentation on these topics? The help files are not much help
In the "Tutorial 12 - Exporting and Importing Charts" you can see the list of export formats and examples of some of them (JPEG, GIF, PNG).
In these examples it's indicated what unit you have to add to use them.
For the rest of export formats, you could click on them and navigate through the help to the unit where they are declared.
Also, being a source code customer, you could just search (ie for "pdf") in the TeeChart sources to know in what unit the exportation dialog to pdf is declared.