Function TWPCustomRtfEdit.GetPageXYfromXY(ScreenX:Integer; ScreenY:Integer; PageNr:Integer; PageXTW:Integer; PageYTW:Integer; par:TParagraph) : Boolean

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

  • ScreenX:Integer
  • ScreenY:Integer
  • PageNr:Integer
  • PageXTW:Integer
  • PageYTW:Integer
  • par:TParagraph

Returns

The type of the result value is Boolean.

Description

This function converts a mouse position into a page position in twips. This is useful to place images in Drag&Drop operations. The parameter 'par' will be set to the first paragraph on this page.