Function TWPCustomRtfEdit.OpenCodes(X:Integer; Y:Integer; list:TWPTextObjList; CheckedCodes:TWPTextObjTypes; MaxCount:Integer) : TWPTextObj

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Returns

The type of the result value is TWPTextObj.

Description

Works like OpenCodes(par: TParagraph; PosInPar: Integer ... but is used with x and y as screen-client coordinates. This makes it easy to use this function in the MouseDown or similar event. Please note that OpenCodes checks for all open object brackets and can be so quite slow in long text. Procedure only looks for a certain object type (such as meil merge fields) and can be sometimes the better choice

Overloaded Methods

Function TWPCustomRtfEdit.OpenCodes(par:TParagraph; posinpar:Integer; list:TWPTextObjList; CheckedCodes:TWPTextObjTypes; MaxCount:Integer) : TWPTextObj