刷新一下 PaintBox1.Refresh;

procedure TForm1.Button2Click(Sender: TObject);
begin
PaintBox1.Canvas.MoveTo(0,0);
PaintBox1.Canvas.LineTo(100,100);
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
PaintBox1.Canvas.Brush.Color := clBtnFace;
PaintBox1.Canvas.FillRect(PaintBox1.ClientRect);

相关文章:

  • 2021-09-01
  • 2021-07-01
  • 2021-06-21
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-07-14
  • 2021-08-31
  • 2022-12-23
相关资源
相似解决方案