Posted 18 years ago by Johny menmonic
is there any possibility to display floating tool window as modal (or something like this). I have tried to close on focus leave with no success.

Comments (1)

Posted 18 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Making a ToolWindow modal essentially defeats the concept of making it a ToolWindow. Since a Modal dialog blocks the owner, there would be no way to interact with the rest of your application while the modal window was opened.

Perhaps you have another goal in mind other than making it modal. Do you just want to close the ToolWindow when the user clicks off of it? If so, this is different than being 'Modal'. I haven't tried this myself, so I'm not certain of the best way to achieve it. My guess would be to look at the events on the DockManager. There are several events for when the focused ToolWindow changes. If the "Focused" ToolWindow is not the one you're wanting to close, that means it no longer has focus and you can close it.
The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.