Oblique shadow for round rectangle nodes

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
Collinor
Newbie
Newbie
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);

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

Re: Oblique shadow for round rectangle nodes

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

Hello,

I could reproduce the problem so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=847

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