RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMemo.CaretPos Property

Indicates the position of the caret in the client area of the memo.

Pascal
property CaretPos: TPoint;
C++
__property TPoint CaretPos;

Use CaretPos to determine the coordinates of the cursor. CaretPos defines a location onscreen, in characters, with the origin in the top left corner of the memo. X specifies the horizontal coordinate of the point, Y specifies the vertical coordinate. 

To determine the position of the caret in terms of characters of text only (rather than X/Y location), use the SelStart property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!