mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 14:00:18 +02:00
LazReport, removed Frame3D code because of apparent copyright violation
git-svn-id: trunk@12523 -
This commit is contained in:
parent
9461bedf98
commit
3484e045f2
@ -54,37 +54,7 @@ begin
|
||||
end;
|
||||
|
||||
procedure Frame3D(Canvas: TCanvas; var Rect: TRect; TopColor, BottomColor: TColor; Width: Integer);
|
||||
|
||||
procedure DoRect;
|
||||
var
|
||||
TopRight, BottomLeft: TPoint;
|
||||
begin
|
||||
with Canvas, Rect do
|
||||
begin
|
||||
TopRight.X := Right;
|
||||
TopRight.Y := Top;
|
||||
BottomLeft.X := Left;
|
||||
BottomLeft.Y := Bottom;
|
||||
Pen.Color := TopColor;
|
||||
PolyLine([BottomLeft, TopLeft, TopRight]);
|
||||
Pen.Color := BottomColor;
|
||||
Dec(BottomLeft.X);
|
||||
PolyLine([TopRight, BottomRight, BottomLeft]);
|
||||
end;
|
||||
end;
|
||||
|
||||
begin
|
||||
Canvas.Pen.Width := 1;
|
||||
Dec(Rect.Bottom);
|
||||
Dec(Rect.Right);
|
||||
while Width > 0 do
|
||||
begin
|
||||
Dec(Width);
|
||||
DoRect;
|
||||
InflateRect(Rect, -1, -1);
|
||||
end;
|
||||
Inc(Rect.Bottom);
|
||||
Inc(Rect.Right);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user