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

TdxZone.IsZonePoint(TPoint) Method

Returns a value indicating whether the specified point is within the zone.

#Declaration

Delphi
function IsZonePoint(const pt: TPoint): Boolean; virtual;

#Parameters

Name Type
pt TPoint

#Returns

Type
Boolean

#Remarks

The IsZonePoint method is used by the GetDockZoneAtPos and GetResizeZoneAtPos methods of dock controls. These methods determine the zone currently located under the mouse pointer. The first method is called repeatedly when performing a docking operation. If it finds a zone, the zone becomes the potential target of the docking operation. The second method is called repeatedly when moving the mouse pointer over dock controls. If it finds a zone, the mouse pointer changes its appearance to indicate that a resizing operation can be initiated.

The IsZonePoint method returns True if the point specified by the pt parameter is within the zone. Otherwise, the method returns False. Note that the point is specified in screen coordinates.

See Also