AppendText without moving the caret

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by John Howe
Version: 4.0.0282
Avatar
Hi Guys,

I am using the editor to display the results of a grep operation running in a background thread.

What I need to do is to have the text results of the grep appended to the editor but when the user selects something in the editor I need the AppendText to continue but without updating the caret (need to leave the user looking at what he/she wants)

Any idea how to accomplish this?

Thanks

John

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi John,

Use DocumentModificationOptions.RetainSelection when calling AppendText. That should do what you want.


Actipro Software Support

Posted 15 years ago by John Howe
Avatar
Hi,

Thanks for that I missed the additional parameter.

Works nicely.

John
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.