TChartGrid when ShowLabel is on

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Herman
Newbie
Newbie
Posts: 56
Joined: Tue Dec 07, 2004 5:00 am

TChartGrid when ShowLabel is on

Post by Herman » Fri May 13, 2005 8:03 am

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

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue May 17, 2005 8:19 am

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.
Marjan Slatinek,
http://www.steema.com

Post Reply