scroll a tree view to sepcific row



Hi all,

I simply want to scroll to a specific position (row) in a tree view.

I found in the docs a method:
    void Gtk::TreeView::scroll_to_row

but I have no idea how to get the parameter "path" for my row.


I build up my model like this:
    m_refTreeModel = Gtk::ListStore::create(m_Columns);
    m_TreeView.set_model(m_refTreeModel);

and fill with:
    Gtk::TreeModel::Row row = *(m_refTreeModel->append());
    row[m_Columns.m_col_id] = 1;
    ....

And now I simply want to scroll to the 7. row and also want to set it selected.

But how can I find the "path"?

Regards
 Klaus





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