Page 1 of 1

TLineSeries Title

Posted: Mon Sep 18, 2006 8:45 pm
by 9237792
Hello,

I have multiple line series on a single TChart. Each of these series has a different Title property to identify it. I've noticed that when adding a title to a line series it automatically adds it to a legend. This is great except for the fact that there appears to be a character limit for each title. My line series titles can be short or quite long. Is there any way I can add horizontal and vertical scrollbars to that legend. I've never saw this technique used in any other software however it might be my only option. I suppose I could hook up a TTreeView but the legend looks better.

Thanks

Posted: Tue Sep 19, 2006 8:13 am
by narcis
Hi neo,

You can use TLegendScrollBar tool to add a scroll bar to the legend. The position of the scroll bar (vertical or horizontal) will depend on the legend alignment (right, left -> vertical; top, bottom -> horizontal). You could try playing combining alignment property with legend's NumRows, NumCols, MaxNumRows, etc.

Posted: Tue Sep 19, 2006 7:07 pm
by 9237792
Thank you.

I'll have a look into TLegendScrollBar

Cheers