BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Loading order

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
nicolasr
Guest





PostPosted: Mon Aug 11, 2003 11:21 pm    Post subject: Loading order Reply with quote



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





PostPosted: Mon Aug 11, 2003 11:59 pm    Post subject: Re: Loading order Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.