TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
riskassessor
- Newbie
- Posts: 2
- Joined: Thu Dec 03, 2015 12:00 am
Post
by riskassessor » Mon Aug 15, 2016 1:05 pm
I am trying to set the corner shape on a frame around the chart title like so:
Code: Select all
procedure TForm3.FormCreate(Sender: TObject);
begin
with Chart1 do
begin
Title.Transparent:=False;
Title.Frame.Visible:=True;
Title.RoundSize:=32;
Title.Frame.JoinStyle:=jsBevel; // or jsRound or jsMitter
end;
end;
But the corners always come out round. Where am I going wrong?
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Tue Aug 16, 2016 10:02 am
Hello,
This may be what you are looking for:
Code: Select all
with Chart1 do
begin
Title.Transparent:=False;
Title.Frame.Visible:=True;
Title.RoundSize:=32;
//Title.Frame.JoinStyle:=jsBevel; // or jsRound or jsMitter
Title.Corners.LeftBottom.Style:=cosBevel;
Title.Corners.LeftTop.Style:=cosBevel;
Title.Corners.RightBottom.Style:=cosBevel;
Title.Corners.RightTop.Style:=cosBevel;
end;