Search code examples
delphidockdocking

How to implement this type of Docking?


Take a look at this Open Source Application called Construct .

It uses Panel Docking where you can drag a Panel, and then some on screen visual aids to show where the Panel may be docked, as seen below:

Before Dragging/Docking

enter image description here

During Dragging/Docking stage

When dragging/moving one of the Dock Panels the Window now looks like this:

enter image description here

As you can see, when dragging/moving the Object Panel it displays the visual aids of where the Panel can be docked. It also moves around like a free Window when not in a docking position. The same applies when dragging/moving other Dock Panels such as the Project Panel in this example.

This is an example of an Application using this, I have also seen other Applications employ this too.

Is there a Delphi way of acheiving this behaviour?

I have some panels that take up some space, freely moving or docking them would be useful feature to implement.

Thanks.

UPDATE

It seems the LMD Components offer such a component which I may look into.


Solution

  • See this old question for docking library.

    Recommendations for a docking library for Delphi / C++Builder?