<< Click to display table of contents >> TSRVPageScroll.GetPageAt |
Returns the index of page displayed at the specified position.
function GetPageAt(X, Y: Integer; isNearest : Boolean) : Integer;
X, Y – client coordinates (relative to the top left corner of the client area of the component's window).
if isNearest=False, the method returns the index of page at the specified coordinates (from 1), or 0 if these coordinates are outside of any page.
if isNearest=True, the method returns the index of the nearest page to the specified coordinates (from 1).