[Gtk-sharp-list] how autoscroll in a scroll window?

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Sep 6 23:29:18 EDT 2010


On Mon, Sep 6, 2010 at 11:19 PM, Gsus <jeguiluz at andeselec.com> wrote:
>
> I make a serial port viewer and i put a textview inside of a scrollwindow.
> but when when I add text I can not show the last text
>
> how i make that the scrollwindow move the scroll itself?

Create a mark end the end of the buffer and use ScrollToMark.

For an example, search for "endMark " in MonoDevelop's LogView class:
http://github.com/mono/monodevelop/blob/master/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/LogView.cs

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Gtk-sharp-list mailing list