TdxZone.IsZonePoint(TPoint) Method
Returns a value indicating whether the specified point is within the zone.
Declaration
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.