Yes, it is possible.

Let's say you have the button Button1 on your form,
Form1.
If you want to create a new edit-box when you click
your button, you have to write an OnClick
event-handler for Button1.
Select Button1 and in Object Inspector double-click
the OnClick event.

In the Code Editor you will have the new event
created.
You can do like in the following lines:

procedure TForm1.Button1Click(Sender: TObject);
var
  wNewEdit: TEdit;
begin
  wNewEdit := TEdit.Create(Self);
  wNewEdit.Parent := Self;
  wNewEdit.Left := 10;
  wNewEdit.Top := 10;
  wNewEdit.Width := 120;
end;

Each time you click the button a new edit-box will be
created and added to the form. This will not be
visible to the naked eye because all the edit-boxes
are superimposed.


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Reply via email to