[Gtk-sharp-list] Gtk# TextView and Scrolling Text
niels.kooiman at gmail.com
Thu Mar 5 04:54:54 EST 2009
> Hi there,
> I'm fighting with TextView widget. Everything is fine except that when I
> load text to it and move cursor in it - the coursor can go out of view
> (TextView doesn't scroll). I tried many examples with using TextIter and
> TextMark and ScrollToMark function, bu it simply doesn't work.
> Can anyone please tell me what am I doing wrong?
> Best regards,
Searched for the same, found a solution:
TextIter ti = textview1.Buffer.GetIterAtLine(textview1.Buffer.LineCount-1);
TextMark tm = textview1.Buffer.CreateMark("eot", ti,false);
textview1.ScrollToMark(tm, 0, false, 0, 0);
View this message in context: http://www.nabble.com/Gtk--TextView-and-Scrolling-Text-tp17653284p22348435.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list