TdxNavBarViewInfo.GetLinkViewInfoAtSelectedPos(TPoint) Method
Returns ViewInfo information for the link whose caption or image is located under the specified point.
Declaration
function GetLinkViewInfoAtSelectedPos(const pt: TPoint): TdxNavBarLinkViewInfo; virtual;
Parameters
Name | Type |
---|---|
pt | TPoint |
Returns
Type |
---|
TdxNavBarLinkViewInfo |
Remarks
This function determines whether the specified point is over a link image or a link caption. If so, the corresponding link’s ViewInfo information object is returned. Otherwise, the GetSelectedLinkViewInfoAtPos function returns nil. The tested point is specified by the pt parameter.
The GetLinkViewInfoAtPos and GetSelectedLinkViewInfoAtPos functions are not identical, since the point can be located over the link’s bounding rectangle, but outside its caption and image rectangles.
See Also