Oblique shadow for round rectangle nodes

TeeTree VCL for Borland Delphi and C++ Builder.

Oblique shadow for round rectangle nodes

Postby 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);
Collinor
Newbie
Newbie
 
Posts: 12
Joined: Wed Oct 16, 2013 12:00 am

Re: Oblique shadow for round rectangle nodes

Postby 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 ImagePlease read our Bug Fixing Policy
Yeray
Site Admin
Site Admin
 
Posts: 8429
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia


Return to VCL

Who is online

Users browsing this forum: No registered users and 2 guests