Parent object always for form controls exist, no matter now control initialized - at form startup or added in run-time. Yes, Init method of child controls called before init of container, but container already exist at that moment.
However, I will try to use the order of Init calls, this might help.
Thanks for suggestion!
>>Is there way to detect in control's Init method code that control added in run-time? For example:
>>
>> procedure Init
>> lAddedInRuntype = ????
>> if lAddedInRuntype
>> ... special actions
>> endif
>> endproc
>
>Vlad,
>
>If control is a part of container(form) than it'll be instantiated before container is. Maybe you can check somehow for existence of conainer and if container instance exist than it's runtime added control.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.