Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Name Type
AControl TdxCustomDockControl
APoint TPoint

#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