Vcl.Controls.TDockTree.InsertControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure InsertControl(Control: TControl; InsertAt: TAlign;  DropCtl: TControl); virtual;

C++

virtual void __fastcall InsertControl(TControl* Control, TAlign InsertAt, TControl* DropCtl);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TDockTree

Description

Handles the docking of a control into the associated DockSite.

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.

See Also