Modify height of legend

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Modify height of legend

Post by Calou » Wed Jun 10, 2009 12:53 pm

Hello,

I want to modify the height of a legend but if i do chart.legend.height:=newvalue nothing occur.

Is it possible to do it?

Thanks

Regards

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

Post by Yeray » Wed Jun 10, 2009 1:22 pm

Hi Calou,

You could do as follows using OnGetLegendRect event:

Code: Select all

procedure TForm1.Chart1GetLegendRect(Sender: TCustomChart;
  var Rect: TRect);
begin
  Rect.Bottom := Chart1.Legend.Top + Chart1.Legend.Height + 50;
end;
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