Forum: Ruby-Gnome 2 Need help with tree cursor

Posted by hendra kusuma (Guest)
on 2011-09-04 14:36
(Received via mailing list)
Hi, a question here

How do I move cursor in tree view (with liststore as model) without 
using
mouse click or arrow?
I mean something like press F1 and it moves to first row?
I can't get it to work especially if tree row has not been focused 
before
I hope someone can help
Thanks
Posted by hendra kusuma (Guest)
on 2011-09-04 15:01
(Received via mailing list)
Nevermind. I've grab some understanding about path and it solves my 
problem
only got to know row number I want to jump to, then set_cursor
GTK::TreePath.new(row_number_I_want_as_string, nil, nil)
Solved it.
Thanks anyway. This is a great library. Really enjoy making software 
using
this :)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.