Page 1 of 1

TChartGrid when ShowLabel is on

Posted: Fri May 13, 2005 8:03 am
by 9235196
When ShowLabel state of chart grid is on, I want to change the "Text" to different name. How?
And how to write the text column area?i want to copy the content of xvalues of a series into that area.

Thank you

Herman

Posted: Tue May 17, 2005 8:19 am
by Marjan
Hi, Herman.
I want to change the "Text" to different name
The "Text" string is taken from the TeeConst.pas, the TEEMSG_TEXT variable (default value for English = "Text"). To change this, all you have to do is use the following:

Code: Select all

Uses ..., TeeConst;

TeeConst.TEEMSG_TEXT := 'Blah-blah';
And how to write the text column area?
You'll have to use several tChartGrid events to draw text directly on it's Canvas. Please check the TeeChartGrid.pas unit to learn more about how this is coded.