Page 1 of 1

Oblique shadow for round rectangle nodes

Posted: Mon Jul 14, 2014 11:30 am
by 16567585
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);

Re: Oblique shadow for round rectangle nodes

Posted: Tue Jul 15, 2014 2:36 pm
by yeray
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.