GetPageAtXY method

Applies to
TWPRTFEnginePaint

Overloaded Variants
Function GetPageAtXY(var X, Y: Integer; var marginarea: TWPMouseMarginArea): Integer;
Function GetPageAtXY(var X, Y: Integer; FindNextPage: Boolean = FALSE): Integer;

Declaration
function GetPageAtXY(var X, Y: Integer; var marginarea: TWPMouseMarginArea): Integer;

Description
Gets the Page Index from the X,Y position which is measured in screen resolution. When the page is found the X and Y coordinates are updated to coordinates which are relative to the start of that page and measured in twips which makes them perfect input variables to GetRTFPositionAtXY. Please also see GetRTFPageAtXY().

Declaration
function GetPageAtXY(var X, Y: Integer; FindNextPage: Boolean = FALSE): Integer;


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com