Hide the TLegendScrollBar

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Ewestenend
Newbie
Newbie
Posts: 2
Joined: Mon Aug 02, 2010 12:00 am

Hide the TLegendScrollBar

Post by Ewestenend » Fri Oct 08, 2010 8:14 am

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.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Hide the TLegendScrollBar

Post by Yeray » Fri Oct 08, 2010 3:06 pm

Hi Eric,

You can do something as follows:

Code: Select all

  Chart1.Draw;
  ChartTool1.Active:=(Chart1[0].Count > Chart1.Legend.NumRows);
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply