This project is read-only.

Prevent from auto scrolling

Topics: Developer Forum
Feb 27, 2014 at 12:05 PM
Chapeau! It is a very good Project.
We are using ScintillaNET–component in a special markup tool.
All is nice, but from time to time it is necessary to insert text without scrolling to the insert position.
Now the problem, I can´t find a way to prevent this auto scrolling behavior of the scintilla- component. How can I lock the scroll when I insert text?
It looks like
private void WmScroll(ref Message m) {…}
will never raise?
Or is the event handling a part of the native scintilla?
Thanks a lot!
Apr 21, 2014 at 4:02 AM
// Insert text (without scrolling)
var pos = scintilla.TextLength;
scintilla.InsertText(pos, "Hello World!\n");