我试图通过画布在 TShape 上绘制,但是没有显示。
procedure TController.DrawGrind;
begin
ShowMessage('I try do draw something');
with FView.Shape1 do
begin
Canvas.MoveTo(Left, Top);
Canvas.Pen.Width:= 5;
Canvas.Pen.Style := psSolid;
Canvas.Pen.Color:= clRed;
Canvas.Brush.Color:= clRed;
Canvas.LineTo(Left, Width);
end;
FView.Shape1.Refresh;
end;
谢谢阅读