Automatic scrolling

Topics: Developer Forum
Apr 18, 2007 at 2:26 PM
Hi!

I'm using Scintilla.NET. I have to perform two tasks: hide the vertical and horizontal scroll bars and realizing an automatic scrolling of the textbox, so that the last line in the document is always visible. Is it possibile to do with Scintilla.NET?

Thanks in advance,
Marco Minerva, marco.minerva@gmail.com
http://blogs.ugidotnet.org/marcom
Coordinator
Jul 11, 2007 at 6:25 AM

marcom wrote:
Hi!

I'm using Scintilla.NET. I have to perform two tasks: hide the vertical and horizontal scroll bars and realizing an automatic scrolling of the textbox, so that the last line in the document is always visible. Is it possibile to do with Scintilla.NET?

Thanks in advance,
Marco Minerva, marco.minerva@gmail.com
http://blogs.ugidotnet.org/marcom


I know this is a little bit of a late reply, but even if you aren't interested anymore here's how you can do it. I tested this by putting a timer that appended text and a new line every 200msec

scintillaEditor.IsHScrollBar = false;
scintillaEditor.IsVScrollBar = false;

scintillaEditor.Modified += new EventHandler<Scintilla.ModifiedEventArgs>(scintillaEditor_Modified);

private void scintillaEditor_Modified(object sender, Scintilla.ModifiedEventArgs e)
{
scintillaEditor.DocumentEnd();
}