[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TWinControl.DockManager

The docking layout manager for this control.

## Declaration

Source position: controls.pp line 1883

`public property TWinControl.DockManager: TDockManager read FDockManager write SetDockManager;`

## Description

A docksite can be managed (using an DockManager) or unmanaged (positioning docked controls in the event handlers). The DockManager determines the placement of docked controls, by setting DropOnControl and DropAlign before the drop, and by resizing and positioning the control when it's dropped.

A DockManager is used only when UseDockManager also is True. Setting UseDockManager to True creates an DockManager of the DefaultDockManagerClass for this docksite, if none was previously installed.

An unmanaged docksite, without an DockManager, can handle the placement of dropped controls in the OnDockOver and OnDockDrop event handlers.

## See also

TWinControl.UseDockManager |  | Create DockManager for docking (read/write)
TWinControl.DockSite |  | Is this a dock site? (read/write, default is False)
TWinControl.OnDockDrop |  | Event handler for the drop of a control to be docked.
TWinControl.OnDockOver |  | Event handler for moves of a control over this docksite.
DefaultDockTreeClass |  |

The latest version of this document can be found at lazarus-ccr.sourceforge.net.