ModernDocking icon indicating copy to clipboard operation
ModernDocking copied to clipboard

Feature: Disable DockingRegion per side

Open KorewaLidesu opened this issue 2 months ago • 5 comments

I'm create application with document replaced behind code, and I want user only able to dock on side only. Is it possible to only dock on side and leave center undockable? (side still dockable from center, but the center dock is hide)

KorewaLidesu avatar Oct 01 '25 17:10 KorewaLidesu

There is currently no setting to do that.

andrewauclair avatar Oct 01 '25 17:10 andrewauclair

Is it possible to add it as feature?

KorewaLidesu avatar Oct 01 '25 18:10 KorewaLidesu

I guess that depends on exactly what you're asking for. Are you looking to allow docking to east/west/north/south but not center of each dockable? Or are you looking to have a separate region in the UI that can't be docked to? If it's the latter, you might be interested in the new (kind of still experimental) docking anchor stuff. See this issue: https://github.com/andrewauclair/ModernDocking/issues/260 and this discussion: https://github.com/andrewauclair/ModernDocking/discussions/247. The editor demo shown in that discussion is here: https://github.com/andrewauclair/ModernDocking/blob/2b50d863890049370bbb29e4b02159418f89f3dc/demo-single-app/src/editor/EditorExample.java.

andrewauclair avatar Oct 02 '25 12:10 andrewauclair

Basically something like this. The main content is anchored and only accept dockable on side rather than center. I will try out docking anchor, but I guess abit of magic will be needed for my purpose. Image

KorewaLidesu avatar Oct 08 '25 17:10 KorewaLidesu

I see. There likely isn't a perfect solution for that type of thing. It's probably doable right now, but annoying. The RootDockingPanel really wants to allow docking in the whole panel.

andrewauclair avatar Oct 08 '25 18:10 andrewauclair