Re: Set Memo Cursor

Posted by Chris Nevin on August 04, 2007

In Reply to Set Memo Cursor posted by Gregory on July 31, 2007

: Setting SelStart of TMemo puts memo-cursor just after indicated character, examples:

: Memo.SelStart := 10; puts cursor after tenth character
: Memo.SelStart := Memo2.GetTextLen; puts cursor after last character.

: If indicated character character is not visible, you won't see cursor! To show cursor position, set Memo.SelLength.

: Your code becomes:
: Memo2.SetFocus;
: Memo2.Text := Memo2.Text + A_Char_From_Memo1;
: Memo2.Selstart := Memo2.GetTextLen;
: Memo2.SelLength := 0;

: Good luck!
: Gregory



Thanks a lot for the help Gregory! Much appreciated!