AppendText without moving the caret

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by John Howe
Version: 4.0.0282
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?



Comments (2)

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

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

Actipro Software Support

Posted 15 years ago by John Howe

Thanks for that I missed the additional parameter.

Works nicely.

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.