Hello, Le 21/02/2008, "Ajax John" <[EMAIL PROTECTED]> 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. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list