Converts the position of the caret in TPoint format to index of the character in text.
function CaretToStr(const p: TPoint): integer;
p.Y is considered as a zero-based number of the line in text.
p.X is considered as a zero-based position of the character in the line.
Copyright (c) 2004-2011. All rights reserved.
|
What do you think about this topic? Send feedback!
|