Re: treeview and scrolling



On Fri, 2005-03-25 at 23:42 +0100, danny van elsen wrote:
> hello all,
> 
> I would like to modify the scrolling behaviour of a treeview: I have 
> hundreds of thousands of rows to show, and the treeview is taking far 
> too long to fill up all of the data.
> 
> So what I want to do is: instead of loading all data into the treeview, 
> and then use the built in scrolling behavior, I would like to add my own 
> scrolling, and to only add the data to the treeview that is currently 
> visible.
> 
> What would be the best way to do this?

I think that you need a derived treemodel that only gets the data when
the data is really needed. There is a custom tree model example in the
gtkmm tarball. It's not very easy.

> - derive a new class from treeview, place it in a scrolledwindow, and 
> act on the adjustment callbacks?
> - place a treeview together with a scrollbar in a window? Should that be 
> a frame or a Viewport?
> - something different?
> 

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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