Scrollbar in Gtk

question

#1

Hi all!

I need to display some informative text in a window. Usually the text consists of a few short lines but sometimes the number of lines is very large.
Is there a way for the text to be displayed in a fixed size window and have a scrollbar allow the user to see the rest of the text?

For that matter, is there a way to wrap anything in a fixed-sized container that allows further exploration of hidden content via a scrollbar?

Thanks a bunch!


#2

i did this scrolled canvas example some time ago:
https://groups.google.com/d/msg/julia-users/uBgKhN3Ycro/ivjoVqZ3CAAJ
and you should find inspiration in:
http://www.pygtk.org/pygtktutorial/sec-scrolledwindows.html
and:
https://developer.gnome.org/gtk-tutorial/stable/c633.html#SEC-SCROLLBARWIDGETS


#3

Totally worked!!! Thanks!