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 

Where to put a call

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Kevin
Guest





PostPosted: Sat Aug 09, 2003 5:41 am    Post subject: Where to put a call Reply with quote



In my component I want to call a color calculation routine and set all the
items with value=clNone to the result. If I call it in the constructor the
ParentColor hasn't been set yet. If I set it in the OnPaint handler I end
up calling it a million times. Where should I call this?


Back to top
Yorai Aminov (TeamB)
Guest





PostPosted: Sat Aug 09, 2003 7:53 am    Post subject: Re: Where to put a call Reply with quote



On Fri, 8 Aug 2003 23:41:14 -0600, "Kevin"
<kevin (AT) sovereignsystems (DOT) com> wrote:

Quote:
In my component I want to call a color calculation routine and set all the
items with value=clNone to the result. If I call it in the constructor the
ParentColor hasn't been set yet.

Override the Loaded method. Loaded is called once the component is
fully loaded and all properties have been set.

---
Yorai Aminov (TeamB)
http://develop.shorterpath.com/yorai
(TeamB cannot answer questions received via email.)


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing 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.