Obtaining TreePosition - Trying to delete a tree row by index

38 views
Skip to first unread message

Tomas Trescak

unread,
Apr 3, 2013, 10:51:45 AM4/3/13
to xwt-...@googlegroups.com
Hello

Even after couple hours of searching I could not find out how to delete a row in a treeview by its index.
My goal is to add limited set of rows to the treeview, therefore if more than X rows are added I need to remove the overflow.

Thus, I am trying to detect a row at a position X and delete it.
The method GetNavigatorAt(treeposition) requires attribute of type TreePosition, which is Interface :/ 
How can I proceed with my problem?

Thanks!

Tomas

Lluis Sanchez Gual

unread,
Apr 4, 2013, 2:38:12 AM4/4/13
to xwt-...@googlegroups.com
Right now there is no API for accessing a node by index. You'll have to get the navigator for the first node and iterate until you reach the node you want.


Thanks!

Tomas

--
You received this message because you are subscribed to the Google Groups "XWT Widget Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xwt-list+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages