RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTabSet.ItemAtPos Method

Returns the index of the tab indicated by the coordinates of a point on the control.

Pascal
function ItemAtPos(Pos: TPoint; IgnoreTabHeight: Boolean = False): Integer;
C++
__fastcall int ItemAtPos(TPoint Pos, Boolean IgnoreTabHeight = False);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!