Am 15.04.2006 um 21:35 schrieb Marc Van Olmen:
How can I change that?
In the window constructor you can create the container control in
this way:
Dim cc As New ContainerControl1
// cc constructor called
// cc has no window reference
cc.EmbedWithin Self, 10, 10
// cc has a window reference
// cc open event fires
If you want a reference to the parent window in the container control
constructor:
Dim cc As New ContainerControl1(self)
// cc constructor called
// cc has a window reference=self
cc.EmbedWithin Self, 10, 10
// cc open event fires
If you want to create other container controls in the container
control you create the master cc the window constructor first
Dim cc As New ContainerControl1(self)
and embed and create sub cc in the cc constructor
sub constructor(owner as window)
self. EmbedWithin Owner, 10, 10
// create sub container controls here
end sub
As you already noticed you can't have a window reference in the
container constructor if you place the container in the IDE.
Hans-Georg
_______________________________________________
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>