On Thu, 08 Sep 2005 19:37:35 +0200
Bartek <[EMAIL PROTECTED]> wrote:
>[...]
> Is there a difference between Application.Create(TForm,Form); and
> From:=TFrom.Create(main_form); ?
Yes.
1. Application.CreateForm uses itself as owner instead of main_form.
2. It sets the variable 'Form' and then calls the constructor. So with
Application.CreateForm the 'Form' can use its variable during the
constructor.
3. It sets Application.MainForm.
4. It handles fsSplash.
Nothing for you to worry about.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives