Re: Scrollbar widget
- From: Damien Caliste <damien caliste cea fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: Scrollbar widget
- Date: Thu, 21 Feb 2008 14:02:40 +0100
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]