Created
April 8, 2012 13:26
-
-
Save melice/2337298 to your computer and use it in GitHub Desktop.
(Delphi)dynamic create a GUI component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure TForm1.Button1Click(Sender: TObject); | |
var | |
edit :TEdit; | |
begin | |
edit := TEdit.Create(nil); | |
edit.Parent := self; | |
edit.Left := random(width); | |
edit.Top :=random(height); | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment