Page 1 of 1

Customizing Legend Text

Posted: Tue Oct 31, 2006 4:29 pm
by 9236620
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

Posted: Thu Nov 02, 2006 10:25 am
by narcis
Hi Ulfert,

Have you tried doing this in the OnGetLegendText event?