Re: [gtkmm] TreeView



>hi guys could somebody help me?
>In a treeview, when I populate it, I want a particular row 
>selected(during the populating i think) and also i wane have it expanded 
>so I can see the underlaying targets but I can't find out how to do this.
>
>grts Bart

Hi.

To expand a single row, use:
Gtk::TreeView::expand_row(const TreeModel::Path& path, bool open_all)

To expand all rows, use:
Gtk::TreeView::expand_all()

To select a row, use on of the 
Gtl::TreeSelection::select( <whatever parameters go in here> )
overrides.

Best regards,

DJ



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