RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDockTree.InsertControl Method

Handles the docking of a control into the associated DockSite.

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

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

Control is the newly docked control. 

InsertAt indicates where Control was docked within the windowed control. 

DropCtl is the windowed control in which Control was docked. It should be the same as the value of the DockSite property. 

InsertControl sets up the docking zone for the control (including a splitter for resizing the zone and a grab region so that the control can be undocked. It then invalidates the windowed control in which Control was docked so that it can repaint itself to display the new docking region and docked object. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!