Posted 20 years ago by developerX - RoofLogic
Avatar
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">

Comments (3)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Not yet however we're currently working on a major new update that will have finite control over features such as preventing tool windows from undocking.


Actipro Software Support

Posted 20 years ago by developerX - RoofLogic
Avatar
That's great! Except...when a Docking Manager instance is being destroyed, shouldn't it destroy it's open Tool Windows even if they are undocked? It does it properly when they are docked. You have a hierarchy of objects, the top level being the Docking Manager instance. If it is destroyed, it's children should go with it. So what would be the point of keeping a Tool Window (docked or undocked) open on the screen when it's Docking Manager no longer exists? To me, this is something that should be addressed in a maintanace release. <IMG SRC="smile.gif" border="0">
Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Probably true however you can call DockManager.ClearLayout right when you are destroying the control as well. That will remove all the floating tool windows.


Actipro Software Support

The latest build of this product (v2.0.0208) was released 19 years ago, which was after the last post in this thread.