Customizing Legend Text

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Messie
Newbie
Newbie
Posts: 34
Joined: Wed Apr 13, 2005 4:00 am
Location: Goettingen, Germany

Customizing Legend Text

Post by Messie » Tue Oct 31, 2006 4:29 pm

Hi,
to display international series identifier I tried to access the ChartLegend.Items[0].text. Why? Changing the series names lead to problems with international characters.
The ChartLegend.Items text may be set but there is a problem in positioning. New text each is drawn with postion 0,0 (upper left corner) when I try to set the text in an OnShow event. An test using a button leads to different behavior: if the legend position is manual, it works well. If the legend position is auto the frame is repositioned due to a new legend width but text is drawn at the former position.
Looks like the Text is drawn before the frame position is fixed. I do not have the code to find a solution...

I use Delphi6 and TC 7.07

Is there any workaround for this item?


Thanks, Ulfert

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Nov 02, 2006 10:25 am

Hi Ulfert,

Have you tried doing this in the OnGetLegendText event?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply