Calculates caret position for the point in editor's client coordinates.
function MouseToCaret(X: integer; Y: integer): TPoint;
TCustomSyntaxMemo Methods