I beleive that the loaded method is called when the properties for the
component are "loaded" from the run time DFM. Since there is no DFM when you
create the control manually there is no properties to be loaded.
Just call the .Loaded method when you create the control at runtime.
Chris
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Mark Derricutt
Sent: Wednesday, July 28, 1999 11:23 AM
To: Multiple recipients of list delphi
Subject: [DUG]: loaded method...
People.... problem...
When my component gets created at runtime the Loaded() method gets called,
but I've just discovered, that when I create the same component at runtime
by calling TMyComp.Create(Self) the Loaded() method -doesn't- get called.
Is this normal behaviour??? I'm sure this worked under D3.....
--
Mark Derricutt, PB Power NZ Ltd (http://www.pbpower.net)
Getting jiggy with Deuteronomium - Spell of Hell
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz