Posted 20 years ago
by GavinK151

hi,
I need to position the cursor and highlight a section of text programatically but cant seem to figure it out.
I used to use a plain old textbox for this using:
blah.Selection.SelLength = 590;
blah.Selection.SelEnd = 890;
How can I do the same thing with the SyntaxEditor? Its probably obvious so sorry for dumb questions :-)
I know about Caret.Offset but it seems to have no visual result though querying the position after using Caret.Offset does show it has moved.....
thanks!
I need to position the cursor and highlight a section of text programatically but cant seem to figure it out.
I used to use a plain old textbox for this using:
blah.Selection.SelLength = 590;
blah.Selection.SelEnd = 890;
How can I do the same thing with the SyntaxEditor? Its probably obvious so sorry for dumb questions :-)
I know about Caret.Offset but it seems to have no visual result though querying the position after using Caret.Offset does show it has moved.....
thanks!