Feature: Disable DockingRegion per side
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)
There is currently no setting to do that.
Is it possible to add it as feature?
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.
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.
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.