Board Logo

retrieve all selected nodes
super-manu - 9/1/2004 at 04:03 PM

I want to retrieve all selected, i don't find it in the documentation.
Is it possible ?


rock - 9/2/2004 at 09:19 AM

You can use open tree API to handle the issue: function find_item_by_state(n_mask) - returns an array of items with specified state. States descrption is also present in the product documentation:
0 bit - last item in the block,
1 bit - reserved,
2 bit - item is selected,
3 bit - item is opened,
4 bit - item is node,
5 bit - item is root,
6 bit - item is mouseovered

So in you case mask should have 2nd bit set, and n_mask value will be 4.

Back to forum: