[Gtk-sharp-list] Gtk# TextView and Scrolling Text

Jiří Zárevúcky zarevucky.jiri at gmail.com
Fri Mar 6 09:12:17 EST 2009



Emfor wrote:
> 
> Hi,
> I did that. When I load text, the scroll bar is shown, but when I move
> cursor around the text and it goes away the visible part of the TextView,
> it doesn't scroll to show the cursor. I experiment here with OnCursorMove
> event and Iter/Mark, but none of the solutions I've found (mostly for
> C/C++) doesn't work with Gtk#.
> 

You have probably used the AddWithViewport method. TextView has it's own
viewport, which is handling the scrolling. You need to use the Add method.
-- 
View this message in context: http://www.nabble.com/Gtk--TextView-and-Scrolling-Text-tp17653284p22373232.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list