| View previous topic :: View next topic |
| Author |
Message |
Kevin Guest
|
Posted: Sat Aug 09, 2003 5:41 am Post subject: Where to put a call |
|
|
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
|
Posted: Sat Aug 09, 2003 7:53 am Post subject: Re: Where to put a call |
|
|
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 |
|
 |
|