Corner JoinStyle on a chart title frame

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
riskassessor
Newbie
Newbie
Posts: 2
Joined: Thu Dec 03, 2015 12:00 am

Corner JoinStyle on a chart title frame

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
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Corner JoinStyle on a chart title frame

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;
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