On Mon, 8 Aug 2005 23:56:24 +0200
Tom Verhoeff <[EMAIL PROTECTED]> wrote:

> On Mon, Aug 08, 2005 at 11:22:44PM +0200, Micha Nelissen wrote:
> > 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.

FOnCreate is called in TCustomForm.DoCreate. DoCreate is called in 
TCustomForm.Create (the constructor). Try setting a breakpoint in the 
constructor and walking through. 

Another (unlikely) possibility: you have overridden the constructor, but forgot 
to call inherited, although I would think that in Delphi then also the OnCreate 
event will not be fired.

Micha

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to