procedure TForm1.Button1Click(Sender: TObject);
begin
with paintbox1 do
begin
Canvas.pen.Color := color;
Canvas.Ellipse(Width div 10, Height div 10,Width , Height);
Canvas.pen.Color := clRed;
Canvas.Ellipse(0, 0, Width, Height);
end;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
with paintbox1 do
begin
Canvas.pen.Color := color;
Canvas.Ellipse(0, 0, Width, Height);
Canvas.pen.Color := clGreen;
Canvas.Ellipse(Width div 10, Height div 10,Width , Height);
end;
end;