Guest User

Untitled

a guest
May 25th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.71 KB | None | 0 0
  1. //DYNAMICZNE TWORZENIE PÓL INPUT  *************************
  2. procedure TForm1.Button1Click(Sender: TObject);
  3. var
  4. n,i: Integer;
  5. begin
  6.  
  7.         n := Strtoint(n_field.Text);
  8.  
  9.     for i:=1 to n do
  10.         with TEdit.Create(self) do begin
  11.         Width:= 120;
  12.         Height:=70;
  13.         Left:=60;
  14.         Top:=30+i*(50);
  15.         Name := 'x_' + Inttostr(i);
  16.         Text := '';
  17.         Parent:=self;
  18.         Visible:=True;
  19.     end;
  20.  
  21.      for i:=1 to n do
  22.         with TEdit.Create(self) do begin
  23.         Width:= 160;
  24.         Height:=70;
  25.         Left:=460;
  26.         Top:=30+i*(50);
  27.         Name := 'xx_' + Inttostr(i);
  28.         Text := '';
  29.         Parent:=self;
  30.         Visible:=True;
  31.     end;
  32.  
  33. end;
Advertisement
Add Comment
Please, Sign In to add comment