How do I set the border at runtime for a chart?
I see nothing in the docs? Seems like that would be in there?
Thanks,
Tom
Setting border at runtime
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Tom,
You can use TChart.Border, for example:
You can use TChart.Border, for example:
Code: Select all
With Chart1.Border do
begin
Visible:=true;
Color:=clBlue;
Width:=5;
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Tom,
You can not use the with statement if you want. Anyway, you can use a variable of TChartHiddenPen type and use it like this:
You can not use the with statement if you want. Anyway, you can use a variable of TChartHiddenPen type and use it like this:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var MyBorderPen: TChartHiddenPen;
begin
MyBorderPen:=TChartHiddenPen.Create(Chart1.CanvasChanged);
MyBorderPen.Visible:=true;
MyBorderPen.Color:=clBlue;
MyBorderPen.Width:=5;
Chart1.Border:=MyBorderPen;
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 |