Hello,
When you set the TChartLegend.Alignment property to laTop, the legend switch to a "horizontal look". In my program, sometimes I need to set the legend back to CustomPosition, but I would like to set it again in a vertical mode.
Is there a way to switch between those vertical and horizontal mode ?
[TChartLegend] Switch horizontal - vertical
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hello bertrod,
I think the easiest way to achieve that is before setting a custom position aligning the legend to a vertical position, for example:
I think the easiest way to achieve that is before setting a custom position aligning the legend to a vertical position, for example:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
Chart1.Legend.Alignment:=laRight;
Chart1.Legend.CustomPosition:=true;
Chart1.Legend.Left:=100;
Chart1.Legend.Top:=100;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |