 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
nicolasr Guest
|
Posted: Mon Aug 11, 2003 11:21 pm Post subject: Loading order |
|
|
Hi,
I have a rather strange problem. My component overrides Loaded(), in that it
first calls the base class Loaded() and then starts an action that depends
on all properties being loaded. However, when I place a log message in my
Loaded() and in one of the property setters it looks as if Loaded() is
always called before the properties get their stored values.
Can anyone confirm this? I have never experienced this with TCustomControls
or TGraphicControls.
Which is the VCL class/method that loads the properties?
thanks for any idea,
Nick
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Aug 11, 2003 11:59 pm Post subject: Re: Loading order |
|
|
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote
| Quote: | I have a rather strange problem. My component overrides
Loaded(), in that it first calls the base class Loaded() and
then starts an action that depends on all properties being loaded.
|
That is fine. Loaded() is called after the properties have all been
streamed in and set from the DFM.
| Quote: | However, when I place a log message in my Loaded()
and in one of the property setters it looks as if Loaded() is
always called before the properties get their stored values.
|
It is not called before the streaming, it is always called afterwards. That
is the whole point of Loaded() to begin with - to let the component know
when it has finished being "loaded".
| Quote: | Which is the VCL class/method that loads the properties?
|
TResourceStream and TReader in conjunction with InitInheritedComponent()
which is called by TCustomForm's and TDataModule's constructors.
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|