unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure FormCreate(Sender: TObject); procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; a, y: integer; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin a := 10; y := 10; end; procedure TForm1.Button1Click(Sender: TObject); var x: TEdit; begin x := TEdit.Create(self); x.Parent := Form1; x.Top := y; x.Left := a; a := a + 20; y := y + 20; end; end.