Page 1 of 1

Hide the TLegendScrollBar

Posted: Fri Oct 08, 2010 8:14 am
by 16456680
Hi,

How can I hide the TLegendScrollBar when all items fit within the Legend area? And how do I show it again in case items will disappear from the screen/chart?

Thanks.
Eric.

Re: Hide the TLegendScrollBar

Posted: Fri Oct 08, 2010 3:06 pm
by yeray
Hi Eric,

You can do something as follows:

Code: Select all

  Chart1.Draw;
  ChartTool1.Active:=(Chart1[0].Count > Chart1.Legend.NumRows);