Back to Devexpress

TdxCustomDockControl.GetDockZoneAtPos(TdxCustomDockControl,TPoint) Method

vcl-dxdockcontrol-dot-tdxcustomdockcontrol-dot-getdockzoneatpos-x28-dxdockcontrol-dot-tdxcustomdockcontrol-system-dot-types-dot-tpoint-x29.md

latest1.8 KB
Original Source

TdxCustomDockControl.GetDockZoneAtPos(TdxCustomDockControl,TPoint) Method

Gets the dock zone at the specified point, provided that the control can be docked to it.

Declaration

delphi
function GetDockZoneAtPos(AControl: TdxCustomDockControl; APoint: TPoint): TdxZone; virtual;

Parameters

NameType
AControlTdxCustomDockControl
APointTPoint

Returns

Type
TdxZone

Remarks

Dock controls store a list of dock zones in their DockZones property. The GetDockZoneAtPos method is used to obtain the dock zone residing under the specified point and capable of accepting the specified control.

The pt parameter specifies the search point and is specified in the dock control’s client coordinates. If a dock zone is found, the method checks whether the control specified by the AControl parameter can be docked to it. If so, the found zone is returned. Otherwise, the GetDockZoneAtPos method returns nil.

Normally, you will have no need to use this method in applications.

See Also

TdxCustomDockControl.DockZones

Dock Zones

Zones Overview

TdxCustomDockControl Class

TdxCustomDockControl Members

dxDockControl Unit