[Gtk-sharp-list] question about Gtk.TextView
John Luke
jluke@users.sourceforge.net
Tue, 02 Sep 2003 15:22:14 -0400
On Tue, 2003-09-02 at 16:45, Davy Brion wrote:
> how can i make sure that a TextView widget doesn't 'grow' once the text inside
> contains more lines than the amount of lines that can be visible? I just
> want a TextView control that resizes whenever it's container resizes (it does
> that), but i don't want it to resize once it has too many lines of text. I
> want it to display a scrollbar and then scroll to the bottom once there are
> too many lines of text.
> can anyone tell me what i need to do to make sure the TextView doesn't grow
> once the text exceeds the visible range and to make it show scrollbars
> instead?
Add the TextView to a ScrolledWindow, and add the ScrolledWindow as you
had the Textview in your snippet.
>
> if this is the wrong place for asking these kind of questions, sorry but it's
> pretty hard to get started with Gtk# if you don't have any Gtk experience.
>
> If anyone could point me to some (up to date) examples of Gtk# applications,
> or more documentation, i'd be very grateful :)
Try http://mono.ximian.com:8080/, it has several examples (but needs
some more). Also, if you want you could install Monodoc for yourself
which included this documentation.
>
> thx
>
>
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list