Hi,
I have a SplitDockStation which I drop a SplitDockGrid’s tree onto. Inside this grid I have added a StackDockStation.
How can I dynamically add Dockables to that StackDockStation after I have done these drops?
Thanks!
Hi,
I have a SplitDockStation which I drop a SplitDockGrid’s tree onto. Inside this grid I have added a StackDockStation.
How can I dynamically add Dockables to that StackDockStation after I have done these drops?
Thanks!
With the current version, and only the Core API, you will have to search that StackDockStation yourself. The StackDockStation is a child of the SplitDockStation, and the SplitDockStation offers methods like “getDockableCount” and “getDockable” to iterate over all its children…
It would also be possible to use the perspective API to add a placeholder in the stack, and show the Dockable later. You would build your layout with “DockFrontend.getPerspective”, and use the resulting “DockFrontendPerspective” to place all Dockables.
With the Common API - which offers you a lot new features - you could use the method “CWorkingArea.show” to show a Dockable at a good location.
I’m currently writing at a mechanism that will be able to place a Dockabel “aside” any other Dockable, unfortunatelly that feature is not yet finished and I do not yet know how much time I have in the next 1-2 weeks to actually work on the framework.