Table of Contents

TTMSFNCBloxSelector.XYToItem Method

Returns the index of the selectable item located at the given control coordinates.

API unit family: TMSFNCBloxSelector Declaring type: TTMSFNCBloxSelector Inherited from: TTMSFNCBloxCustomSelector

Syntax

function XYToItem(X, Y: Single): Integer;

Parameters

Name Description
X Horizontal position, in control coordinates.
Y Vertical position, in control coordinates.

Returns

The index of the enabled, non-separator, non-empty item at that position, or -1 when no such item is hit.