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

# TDockManager.InsertControl

Position DropCtl relative Control, using the alignment specified by InsertAt.

## Declaration

Source position: line 0

`public procedure TDockManager.InsertControl(`
`ADockObject: TDragDockObject`
`); virtual; overload; procedure TDockManager.InsertControl(`
`Control: TControl;`
`InsertAt: TAlign;`
`DropCtl: TControl`
`); virtual; abstract; overload;`

## Description

InsertControl determines the layout and appearance of the just docked control, forcing a repaint of the container control if necessary.

An overloaded version passes the DragDockObject to the dockmanager, allowing to pass more information about the drop. It allows to implement other than tree-style docksites.

## See also

TDockManager.RemoveControl |  | Removes the undocked control from the docksite layout.
TDockManager.RemoveControl |  | Removes the undocked control from the docksite layout.

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