[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Gets the ordinal position for the page object located at the specified client coordinates.
Source position: comctrls.pp line 452
protected function TCustomTabControl.IndexOfPageAt( |
X: Integer; |
Y: Integer |
):Integer; virtual; overload; |
P: TPoint |
):Integer; virtual; overload; |
X |
|
Horizontal client coordinate for the page position located in the method. |
Y |
|
Vertical client coordinate for the page position located in the method. |
Ordinal position for the page object located the specified client coordinates.
P |
|
TPoint instance with the client coordinates for the requested page index. |
IndexOfPageAt is an overloaded method in TCustomTabControl used to get the ordinal position for the page object located at the specified client coordinates. The overloaded variants allow the client coordinates to be specified as separate Integer values, or as a TPoint instance where the X and Y members contain the client-relative coordinates.
Example Usage:
APos := TabControl1.IndexOfPageAt(TabControl1.ScreenToClient(Mouse.CursorPos));
|
Provides indexed access to the page objects used on the tabbed control. |
|
|
Returns the number of page objects stored in the internal page list for the tabbed control. |
|
|
Contains the list of pages accessible in the tabbed control. |
|
|
Gets the real page index for the specified tab. |
|
|
Returns the ordinal position for the visible tab located at the specified client coordinates. |
Version 4.0 | Generated 2025-05-03 | Home |