Re: Scrollbar widget



Hello,

Le 21/02/2008, "Ajax John" <ajaxjohn gmail com> a Ãcrit :
Can anyone give me a small example how a scrollbar widget is
used .Suppose with text box widget or list widget.
You have to use a scrolledWindow windget, see
http://library.gnome.org/devel/gtk/stable/GtkScrolledWindow.html . The
tutorial (http://www.gtk.org/documentation.html) explains how to use
it. There are two possibilities:
- if the child widget has no viewport ability, add it with
gtk_scrolled_window_add_with_viewport() (this is the case in the
tutorial) ;
- if you add a treeview, or a textview (which has a built-in viewport
ability), then use gtk_container_add().
Everything is detailled in the API doc (first link).

Damien.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]