procedure TForm1.FormCreate(Sender: TObject);
begin
  pb :
= TPaintBox.Create(Self); pb.Parent := Self;
end;

procedure TForm1.Button1Click(Sender: TObject); begin
  pb.Canvas.Pen.Color :
= clBlue;
  pb.Canvas.Brush.Color :
= clRed;
  pb.Canvas.Rectangle(
0,0,50,50);
end;

相关文章:

  • 2021-11-28
  • 2021-11-14
  • 2021-12-11
  • 2021-12-27
  • 2022-02-20
  • 2021-08-09
  • 2021-08-30
猜你喜欢
  • 2021-04-02
  • 2021-06-16
  • 2022-01-04
  • 2022-02-17
  • 2021-08-01
  • 2021-10-27
  • 2021-08-12
相关资源
相似解决方案