Skip to main content

TdxNavBarViewInfo.GetLinkAtSelectedPos(TPoint) Method

Returns the link whose image or caption is located under the specified point.

Declaration

function GetLinkAtSelectedPos(const pt: TPoint): TdxNavBarItemLink; virtual;

Parameters

Name Type
pt TPoint

Returns

Type
TdxNavBarItemLink

Remarks

This function determines whether the specified point is over a link image or a link caption. If so, the corresponding link object is returned. Otherwise, the GetSelectedLinkAtPos function returns nil. The tested point is specified by the pt parameter.

The GetLinkAtPos and GetSelectedLinkAtPos 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