Re: treeview and scrolling
- From: danny van elsen <danny van elsen skynet be>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: treeview and scrolling
- Date: Tue, 29 Mar 2005 22:21:51 +0200
hello Murray,
thanks for the answer!
I have had a look at the gtkmm example, but it seems to me that it will
still call "get_data_row_iter_from_tree_row_iter" for every row in the
data model, when initializing the model?
I put a "cout" statement in this method, and the more rows (rows_count)
there are in the model, the more output there is...
Is there a way to avoid this?
greetings, Danny.
*********************************************************************
Murray Cumming wrote:
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.
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]