TDockManager.InsertControl procedure
Position
DropCtl relative
Control, using the alignment
specified by
InsertAt.
Declaration
procedure InsertControl(ADockObject: TDragDockObject); virtual
; overload
procedure InsertControl(Control: TControl; InsertAt: TAlign;
DropCtl: TControl); virtual; abstract
; overloadDescription
InsertControl determines the placement of the just docked control, forcing a repaint of the container control if necessary.
When SetReplacingControl has been called with a non-Nil Control before,
the dropped control only should replace that control.
An overloaded version passes the DragDockObject to the dockmanager, allowing to pass more information about the drop. It allows one to implement other than tree-style docksites.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
