When the user has selected an item, I want to be able to select the next item (the one below or the one above). As in:
Code: Select all
Treeview and items:
A
B
C
C.1
C.2
C.3
D
D.1
D.2
E
This is fairly easy if I know the order the items are displayed in the treeview. But I don't necessarily do that.
The treeview items seem to be sorted differently than the sort_list does. For instance I get this order in the treeview:
Code: Select all
Lok: P31- Ord: 4656
Lok: R10-F3- Ord: 4656
Lok: R12F3- Ord: 46
Lok: R1-F4- Ord: 465and this with sort_list:
Code: Select all
Lok: P31- Ord: 4656
Lok: R1-F4- Ord: 465
Lok: R10-F3- Ord: 4656
Lok: R12F3- Ord: 46