RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTabControl.IndexOfTabAt Method

Indicates the index of the tab at a specified point.

Pascal
function IndexOfTabAt(X: Integer; Y: Integer): Integer;
C++
__fastcall int IndexOfTabAt(int X, int Y);

Use IndexOfTabAt to locate which tab is at the point specified by X and Y. If the point with X-coordinate X and Y-coordinate Y is over a tab, IndexOfTabAt returns the 0-offset index of that tab in the Tabs property (TTabControl) or in the Pages property (TPageControl). If the point defined by X and Y is not over a tab, IndexOfTabAt returns –1. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!