Prevent from auto scrolling

Topics: Developer Forum
Feb 27, 2014 at 11:05 AM
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 3:02 AM
// Insert text (without scrolling)
var pos = scintilla.TextLength;
scintilla.InsertText(pos, "Hello World!\n");