Oblique shadow for round rectangle nodes

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
Posts: 12
Joined: Wed Oct 16, 2013 12:00 am

Oblique shadow for round rectangle nodes

Post by Collinor » Mon Jul 14, 2014 11:30 am

In the TTree component of TeeChart 2014 of May, 12, 2014, the shadow of round rectangle nodes is drawn oblique, since the parameter for the round size of the rectangle is also passed as angle to the draw function.
Therefore, line 4315 in TeeTree.pas, function TTreeNodeShape.InternalDrawShadow

Code: Select all

      tssRoundRectangle : FShadow.Draw(ACanvas,ACanvas.CalcRect3D(tmpR,TeeTreeZ){,TeeTreeZ},RoundSize,RoundSize);
has to be fixed in the following way:

Code: Select all

      tssRoundRectangle : FShadow.Draw(ACanvas,ACanvas.CalcRect3D(tmpR,TeeTreeZ){,TeeTreeZ},RoundSize,0); // RoundSize);

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

Re: Oblique shadow for round rectangle nodes

Post by Yeray » Tue Jul 15, 2014 2:36 pm


I could reproduce the problem so I've added it to the public tracker:

I've also confirmed your suggestion fixes it, so we'll implemented the change in our internal sources and close the ticket asap.
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