Posted 21 years ago
by developerX
-
RoofLogic

Is there a way to prevent a docked tool window from undocking from it's docking manager?
I have a docking manager in my main form which hosts my document windows. Each document window contains a user control that has it's own docking manager so that I can dock a tool window (flyout) in each. If the user undocks the tool window and then closes the document window, the tool window is still "alive" there on the screen. They can get rid of it of course by manually closing it, but I don't think they should have to. The document and it's contained docking manager have been destroyd so shouldn't the tool window go with it automatically?
A possible work around would be to prevent the tool window from becoming undocked, but I don't see a way to do that. <IMG SRC="mad.gif" border="0">
I have a docking manager in my main form which hosts my document windows. Each document window contains a user control that has it's own docking manager so that I can dock a tool window (flyout) in each. If the user undocks the tool window and then closes the document window, the tool window is still "alive" there on the screen. They can get rid of it of course by manually closing it, but I don't think they should have to. The document and it's contained docking manager have been destroyd so shouldn't the tool window go with it automatically?
A possible work around would be to prevent the tool window from becoming undocked, but I don't see a way to do that. <IMG SRC="mad.gif" border="0">