At 3:17 PM -0500 3/3/06, RBNUBE wrote:
I've tried doing this, but it won't compile when referring to a control in
this window that doesn't really exist yet.
I'm afraid I don't understand that.
In the floating window, I need to refer to the window that it was 'torn'
from.
Right. I normally call this Parent. So when I "tear" the floating
window, I say (in the parent window's code) something like:
Dim floater as New ToolbarFloatingWin
floater.Parent = self
floater.Show
Now, the floating window can simply look at its "Parent" property
whenever it needs to know what window it came from.
Not only this, but I want to refer to the Toolbar control that is on
that window so that I can make it visible or invisible. This is what I
cannot do.
You can, if you've defined your Parent property as the specific
window class that it's going to come from. However, I really don't
think it should be the floating window's job to be mucking with the
parent window's controls. Better might be to invoke some method on
that window, that tells it when you think it should hide or show the
toolbar.
In other words, the following will not work:
Where ToolbarWindow is a property of type Window.
ToolbarWindow.Toolbarcontrol.Left = 0
That's because there is no "Toolbarcontrol" on the Window class.
You'd have to declare it as the specific class of window that has
such a contrtol. Do that, but I still recommend not referencing the
controls thereof directly, but instead call a method on the window.
Best,
- Joe
--
Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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>