Vcl.Tabs.TTabSet.ItemAtPos
Delphi
function ItemAtPos(Pos: TPoint; IgnoreTabHeight: Boolean = False): Integer;
C++
int __fastcall ItemAtPos(const System::Types::TPoint &Pos, bool IgnoreTabHeight = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Tabs.pas Vcl.Tabs.hpp |
Vcl.Tabs | TTabSet |
Description
Returns the index of the tab indicated by the coordinates of a point on the control.
Call ItemAtPos to identify the tab under the point specified by the Pos parameter. Pos is the point in the control in client coordinates. If the returned index is 0, the tab is the first tab in the tab set, if the index is 1, the tab is the second tab, and so on. ItemAtPos returns –1 if there is no tab at the specified point.