Skip to main content

TdxCustomRibbon.GetTabAtPos(Integer,Integer) Method

Returns the Ribbon tab by its relative screen coordinates.

Declaration

function GetTabAtPos(X: Integer; Y: Integer): TdxRibbonTab;

Parameters

Name Type
X Integer
Y Integer

Returns

Type
TdxRibbonTab

Remarks

The point’s position should be specified within the boundaries of the tab title’s rectangle.

If the specified coordinates are outside the rectangle’s boundaries, nil is returned.

X and Y specify relative screen coordinates of the tested point.

See Also