super-manu
Junior Member
Posts: 7
Registered: 10/15/2003
Member Is Offline
|
| posted on 9/1/2004 at 04:03 PM |
|
|
retrieve all selected nodes
Hi,
I want to retrieve all selected, i don't find it in the documentation.
Is it possible ?
Manu.
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 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.
|
|
|
|