Posted 13 years ago by Radjesh Klauke - Mr., X-impress
Version: 4.0.0288
Avatar
How do I show on which line and column my cursor is? (property)

[Modified at 03/04/2011 09:13 AM]

Comments (5)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
This property (editor.Caret.DisplayDocumentPosition) has line and character properties on it for display purposes (1-based).


Actipro Software Support

Posted 13 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Thanks. I was wondering how to "activate" this on editor created at runtime. The Form_KeyPress of Form_KeyDown aren't the way. (at least... it doesn't work proper)
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You should use the SyntaxEditor.SelectionChanged event like we do in our sample.


Actipro Software Support

Posted 13 years ago by Radjesh Klauke - Mr., X-impress
Avatar
That won't work on a programmatically created editor...
Posted 13 years ago by Radjesh Klauke - Mr., X-impress
Avatar
Needed to create a AddHandler ;)
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.