Skip to main content
Table of Contents

TTMSFNCTabSet.XYToTab Method

Returns the tab display information at the specified control coordinates.

API unit family: TMSFNCTabSet Declaring type: TTMSFNCTabSet Inherited from: TTMSFNCCustomTabSet

Syntax

FMX.TMSFNCTabSet.hppPascalC++
function XYToTab(X, Y: Single; AExcludeTab: TTMSFNCTabSetTab = nil): TTMSFNCTabSetDisplayTab; virtual;
virtual TTMSFNCTabSetDisplayTab __fastcall XYToTab(float X, float Y, TTMSFNCTabSetTab* AExcludeTab = (TTMSFNCTabSetTab*)(0x0));

Parameters

Name Description
X Horizontal coordinate in control client pixels.
Y Vertical coordinate in control client pixels.
AExcludeTab Optional tab to ignore during hit testing.

Returns

The display-tab record at the coordinates, or an empty record when no tab is hit.