Re: Selecting rows automatically...



 
Hi ,
I think you are looking for setting the cursor to any of the row of treeview.
There is a method mentioned below:

    int rowNum=10;
    char buf[10] ;
    sprintf(buf,"%d",rowNum);
    treeView->set_cursor (Gtk::TreePath (buf));

    //For setting the cursor to 3rd Row.
    //treeView->set_cursor (Gtk::TreePath ("2"));

Let me know if you are looking for something else.

Regards,
Rashid


On 08/06/2009, Sever P A <gnu sever gmail com> wrote:
Hello,

In order to improve my app. and understand better the Gtk::TreeView
and so (I use a Gtk::ListStore as a TreeModel), I'm trying to select
rows automatically. For this, I have an int variable that stores an
index pointer. I know that iterators serve to this kind of needs...
but here I'm really confused.

How can I manage this int (entire) value to select an associated row ?

S.
_______________________________________________
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]