Function TWPCustomRtfEdit.GetLineFromXY(ScreenX:Integer; ScreenY:Integer; par:TParagraph; posinpar:Integer) : Boolean
Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit
Parameters
-
ScreenX:Integer ScreenY:Integer par:TParagraph posinpar:Integer
Returns
The type of the result value is Boolean.
Description
Calculates the paragraph and position inside this paragraph at a certain client screen coordinate.Example - position at mouse position:
var p : TPoint; p := rich.ScreenToClient( Mouse.CursorPos ); WPRichText1.GetLineFromXY(p.x, p.y, par,posinpar);
Overloaded Methods
Function TWPCustomRtfEdit.GetLineFromXY(ScreenX:Integer; ScreenY:Integer; par:TParagraph; posinpar:Integer; RTFPageNr:Integer; RTFPage:TWPVirtPage; ARTFData:TWPRTFDataBlock; FrameBorder:TWPFrameBorder; TextObject:TWPTextObj; SizerElement:TWPPaintSizerRects) : Boolean |