Sign in Join
FPDoc Onlineexperiment

TDockManager.InsertControl procedure

Member of TDockManagerpublicIn unit Controls

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

Declaration

pascal
procedure InsertControl(ADockObject: TDragDockObject); virtual
 ; overload
procedure InsertControl(Control: TControl; InsertAt: TAlign; 
 DropCtl: TControl); virtual; abstract
 ; overload

Description

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.