Re: Hidding TreeView rows



В Чтв, 28/09/2006 в 11:31 +0200, Murray Cumming пишет:
> > Good day.
> >
> > Is there way to hide TreeView row?
> >
> > The main task is implementing filter on data representing as Tree
> > structure. So, only rows that match filter should appear.
> >
> > But if we will filter data itlself we might lose parent -> child
> > connection and cannot build tree properly.
> >
> > So, I would just hide rows that doesn't match filter.
> 
> TreeModelFilter:
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1TreeModelFilter.html
> 
> http://cvs.gnome.org/viewcvs/gtkmm/examples/book/treeview/filter/

Thanks, after some research and checking example I figured out how it
should work.

I guess, example is not written completelly right:
1. Click checkbox on first row - it disappears, and second row goes up.
2. Don't move mouse, just click checkbox on row that is under pointer
now - first row appears again instead of current row disappears.

Regards,
-andrew





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