Oh, forgot to tell, this part: > ... > begin > Application.Initialize; > Application.Run; > end.
is inside an unit's initilization section. So the main program still runs, creating the form. :D 2007/11/26, Vincent Snijders <[EMAIL PROTECTED]>: > Marco Alvarado schreef: > > I need to create my forms dynamically. In Delphi I just remove the > > designed form from the main program, so it looks like this: > > > > ... > > begin > > Application.Initialize; > > Application.Run; > > end. > > > > Later on, I just create new instances of my forms and assign it's > > properties, i.e.: > > > > ... > > AForm := TMyForm.Create(Application); > > AForm.Caption := 'This is my form'; > > AForm.Left := X; > > AForm.Top := Y; > > AForm.Width := Width; > > AForm.Height := Height; > > AForm.Show; > > ... > > > > How is this code entered? I cannot imagine Application.Initialize or > Application.Run; do that. > > Vincent > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives