View previous topic :: View next topic |
Author |
Message |
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:12 am Post subject: Movement of cursor position |
|
|
How do I do the following programatically?
1. get x,y current position of cursor
2. goto specific line number
3. get text of line at cursor position x,y |
|
Back to top |
|
|
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:13 am Post subject: |
|
|
Posted by: econtrol (IP Logged)
Date: May 31, 2006 11:38AM
1. Code: | TSyntaxMemo.CaretPos: TPoint |
2. Code: | SyntaxMemo1.CaretPos := Point(SyntaxMemo1.CaretPos.X, NewLineIndex) |
3.
Code: | if SyntaxMemo1.Lines.Count > 0 then
S := SyntaxMemo1.Lines[SyntaxMemo1.CaretPos.Y]
else
S := ''; |
Michael. |
|
Back to top |
|
|
|