TPageControl.IndexOfPageAt function
Gets the ordinal position for the page object located at the specified client coordinates.
Declaration
function IndexOfPageAt(X: Integer; Y: Integer): Integer; override
function IndexOfPageAt(P: TPoint): Integer; overrideDescription
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));
This description is the one of ComCtrls.TCustomTabControl.IndexOfPageAt.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
