Re: [gtk-list] Example CList w/scrollbars?




On Thu, 18 Mar 1999, John Tunison wrote:
> 
> Can somebody point me in the right direction to find an example of a CList
> with a vertical scrollbar?  
>

testgtk.c is a good source.

This is simple though; create a GtkScrolledWindow, both adjustment args to
the _new() function can be NULL; then gtk_container_add() the clist to the
scrolled window. Finally call gtk_scrolled_window_set_policy() to set the
policy for both bars to automatic (unless you want them to always be
there).
 
Havoc




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