Hans,
Just continuing this thread because maybe there is something I don't
know about RB and I can learn something...
didn't try this yet, but logically I would say that doesn't work...
in case the Container Control is placed manually on the window (or
in case one of his sub sub sub containercontrols), with the IDE.
But you could change that, specially if all other possibilities are
buggy in your experience.
How can I change that?
i can add off course
constructor(pMyWindow as Window)
do
end
to the container control.
but that constructor is never called when you place the Container
Control on the Window in the IDE. because these only receive the
constructor()
do
end
call... as far as I know, maybe some trick I'm not aware of yet...
Another way: You could put your code in the open event of the
container control. There you have a valid reference to the parent
window. The window may not fully initialized though.
I can't do that because it is the chicken and egg problem.
In the constructor I create the eggs, in the 'Open Event' I create
the chickens.
cheers.
mvo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>