procedure TForm1.draw_fill (rect: TRectangle);
var
r: TRectF;
begin
FR.Canvas.BeginScene;
FR.Canvas.Fill.Color := TAlphaColors.Black;
FR.Canvas.Stroke.Color := TAlphaColors.Green;
FR.Canvas.Stroke.Thickness := 10;
r := TRectF.Create (TPointF.Create (FR.Position.X, FR.Position.Y), FR.Width, FR.Height);
FR.Canvas.FillRect (r, 0, 0, AllCorners, 1);
FR.Canvas.EndScene;
end; // draw_fill //
var
r: TRectF;
begin
FR.Canvas.BeginScene;
FR.Canvas.Fill.Color := TAlphaColors.Black;
FR.Canvas.Stroke.Color := TAlphaColors.Green;
FR.Canvas.Stroke.Thickness := 10;
r := TRectF.Create (TPointF.Create (FR.Position.X, FR.Position.Y), FR.Width, FR.Height);
FR.Canvas.FillRect (r, 0, 0, AllCorners, 1);
FR.Canvas.EndScene;
end; // draw_fill //