with
'bn'⎕WC'form'('coord' 'pixel')
'bn.tv'⎕WC'treeview'
depth←0 1 2 3 3 2 2 3 3 1 2 3 3 2 3 3
itm←1⊂[1]'abcdefghijklmnopqrstuvwxyz'[?((⍴depth),3)⍴26]
bn.tv.(Items Depth)←itm depth
by mouse, i select an item.
⍸ bn.tv.SelItems
12
i search vector of all parents from root to selected item.
by hands, i do
bn.tv.GetParentItem 12
11
bn.tv.GetParentItem 11
10
bn.tv.GetParentItem 10
1
but, in case of all unselect
bn.tv.SelItems
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
bn.tv.GetParentItem 0
¯1
i feel a dfns is a better solution, but i don't see how to write in dfns.
can you explain to me how to write it ?
Best Regards,
Yves