On Mon, Aug 08, 2005 at 11:22:44PM +0200, Micha Nelissen wrote:
> On Mon, 8 Aug 2005 23:02:26 +0200
> Tom Verhoeff <[EMAIL PROTECTED]> wrote:
>
> > The various units report that they get initialized properly. However,
> > in .lpr after
> >
> > Application.CreateForm(TMainForm, MainForm);
> > Application.Run;
> >
> > the OnCreate of this MainForm does not get called. OnCreate is defined in
> > the Main.lfm file: OnCreate = FormCreate. FormCreate never gets called.
> >
> > If I try the same thing in a small Hello World project, it works fine.
> >
> > Have I overlooked something obvious. How can an event get lost, or
> > can it be that the main event loop is affected?
>
> Is the FormCreate procedure in the published section of the Form class
> definition ? That's all I can think of right now...
In both the problematic large Delphi project and my working Hello World
example, the FormCreate is right below TMainForm = class(TForm), without
preceding modifier (neither private, published, public, protected, ...).
I use GTK(1). It is a nightmare to trace the handling of events through
the code. I cannot even find where the OnCreate event is supposed to be
generated as a consequence of (form) creation.
Thanks,
Tom
--
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE: +31 40 247 41 25 | Eindhoven University of Technology
FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/ | The Netherlands
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives