Vcl.Controls.TDockTree.PositionDockRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PositionDockRect(Client, DropCtl: TControl; DropAlign: TAlign;
var DockRect: TRect); virtual;

C++

virtual void __fastcall PositionDockRect(TControl* Client, TControl* DropCtl, TAlign DropAlign, System::Types::TRect &DockRect);

Properties

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

Description

Computes the dimensions of a new docking zone.

The control that is being docked calls PositionDockRect from its own PositionDockRect method when it is being docked to a windowed control that uses a dock manager. It allows the dock tree to indicate where a specified control would appear if the user released the mouse.

Client is the control that is being dragged to a docking position.

DropCtl is the windowed control into which Client will be docked. It should be the same as the value of DockSite.

DropAlign indicates where Control is to be docked within the windowed control.

DockRect returns the boundaries of the docking zone where Control can be docked.

See Also