Re: Scrollbars in a GtkTreeView

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

 



Hello,
just pack GtkTreeView inside GtkScrolledWindow with gtk_container_addand your scrolling will work.
You can also provide your own GtkScrollbars and set theirGtkAdjustment to the one of the GtkTreeView like this:
hscroll = gtk_hscrollbar_new( gtk_tree_view_get_hadjustment( swindow )) and vscroll = gtk_vscrollbar_new( gtk_tree_view_get_vadjustment(swindow ) )


2008/11/18 Ian Puleston <ian@xxxxxxxxxxxxxxxxxxxxxxx>:> Hi,>> The GtkTreeView documentation talks about it having a "header_window" and a> scrollable "bin_window", but no more information about that scroll ability.> After some experimentation I found that if I used a gtk_widget_size_request> to limit the tree view height then it could be scrolled up and down using> the up/down arrow cursor keys.>> But I can't find any way to give the scrollable window scrollbars, and it> doesn't react to trying to scroll it using the mouse wheel, so to a user its> rather non-intuitive. Is there any way to get scroll bars into a> GtkTreeView?>> Ian>>> _______________________________________________> gtk-list mailing list> gtk-list@xxxxxxxxx> http://mail.gnome.org/mailman/listinfo/gtk-list>


-- Tadej Borovšak00386 (0)40 613 131tadeboro@xxxxxxxxxxxxxxxxxxxxxxx@gmail.com_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux