[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Gets the position for the tab at the specified mouse coordinates.
Source position: comctrls.pp line 851
public function TTabControl.IndexOfTabAt( |
X: Integer; |
Y: Integer |
):Integer; override; |
P: TPoint |
):Integer; override; |
X |
|
Horizontal coordinate for the mouse pointer. |
Y |
|
Vertical coordinate for the mouse pointer. |
Ordinal position for the hovered tab in the Tabs property.
P |
|
TPoint instance with the mouse coordinates. |
IndexOfTabAt is an overridden overloaded Integer function used to get the position for the tab at the specified mouse coordinates. The overloaded variants allow the mouse coordinates to be specified as a TPoint instance, or two Integer values.
IndexOfTabAt re-implements the methods from the ancestor class to use the TTabControlNoteBookStrings instance in Tabs. Tabs provides the offset for the control from the value in ClientOrigin. The IndexOfTabAt method in Tabs is called to get the return value for the method.
The return value contains the ordinal position in Tabs where the mouse pointer is located.
|
Returns the ordinal position for the visible tab located at the specified client coordinates. |
Version 3.2 | Generated 2024-02-25 | Home |