procedure TForm1.Button1Click(Sender: TObject);
var
i,x,y: Integer;
Shape: TShape;
begin
begin
i := strtoint(edit1.text);
x:=5;
y:=10;
Shape := TShape.Create(Self);
Shape.Parent := Self;
Shape.Name := 'Shape' + IntToStr(i);
Shape.Left := x;
Shape.Top := y;
Shape.Width := 5;
Shape.Height := 5;
end;
Czy taka metoda jest dobra?