Re: TreeModel and TreeView



Trigve,

Using custom tree models for this sounds like an overcomplication. I'd
recommend trying a normal tree model and loading data into it instead
of trying to subclass it.

Custom tree models are fairly complicated. I'd avoid using them if possible.

Paul

On 1/28/07, Trigve Siver <trigves yahoo com> wrote:





Hi,






I'm examining the exmaple code from gtkmm sources
(examples/treemodelcustom). I have compiled and run it and have some
question. The first operation that is called is
ExampleTreeModel::get_iter_vfunc(const Path& path,
iterator& iter) and then "_number_of_rows_" times iter_has_child_vfunc +
iter_next_vfunc. Then get_value_vfunc is called... so I was thinking that
get_value_vfunc is called only when TreeView need information for rendering
the cell...but it looks like that it is called even when only one row is
visible... So my question is if it is possible somehow to achieve that
get_value_vfunc is called only when row is to be rendered... I want to
display some data from DB where is about 10.000+ records...so want to fetch
row on demand...not all rows at begining

thanks

Trigve
 ________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list






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