RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDockManager.InsertControl Method

Handles the docking of a control into the associated container control.

Pascal
procedure InsertControl(Control: TControl; InsertAt: TAlign; DropCtl: TControl);
C++
__fastcall InsertControl(TControl * Control, TAlign InsertAt, TControl * DropCtl);

InsertControl is called immediately after the container control that uses the dock manager adds a new control to its list of docked controls. 

Control is the newly docked control. 

InsertAt indicates where Control was docked within the container control. 

DropCtl is the container control in which Control was docked. 

InsertControl handles any tasks the dock manager needs to manage the layout and appearance of docked controls, forcing a repaint of the container control if necessary. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!