Oblique shadow for round rectangle nodes
Posted: 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
has to be fixed in the following way:
Therefore, line 4315 in TeeTree.pas, function TTreeNodeShape.InternalDrawShadow
Code: Select all
tssRoundRectangle : FShadow.Draw(ACanvas,ACanvas.CalcRect3D(tmpR,TeeTreeZ){,TeeTreeZ},RoundSize,RoundSize);
Code: Select all
tssRoundRectangle : FShadow.Draw(ACanvas,ACanvas.CalcRect3D(tmpR,TeeTreeZ){,TeeTreeZ},RoundSize,0); // RoundSize);