Aw: Re: Re: scroll a tree view to sepcific row



Hi again,

You never move iter beyond children.begin().
 

Yepp... iter++ fix the problem :-) THANKS!

I saw for a c code example that there is a possibility to get a path from ustring in some notation like "7:".
http://scentric.net/tutorial/sec-treemodel-rowref.html

So I also tried 



    Gtk::TreePath p1("8:");
    m_TreeView.scroll_to_row( p1, 0);

compiles but did nothing. Is my syntax for the string invalid or must it be converted before?

And as shown in my now fixed first example code snippet, ist it possible to get the iterator direct from the 
model without manually coding the iterating loop over all the children?

Regards
 Klaus


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