Re: Tree using wxEuphoria
- Posted by mattlewis (admin) Mar 24, 2012
- 2005 views
EUWX said...
The event handler you suggested works well as described.
I have still not understood
1. The sequence "items"
2. The "void" in the following line, although I have copied and modified it:
void = add_tree_item( tree, items[i][2][j][1], nums3[i][j][k], qimg2,qimg2)
If you look at the tree, you'll see it's structured (partially opened) like:
- Demo + one | + One-Sub | | + ABC1 | | + BCD1 | | + DEF1 | + Two-sub | | + EFG1 | | + FGH1 | | + GHI1 | + Three-Sub + two + three
The structure of the sequences mirrors the structure of the tree. It stores the ids of the tree items, which were returned from add_tree_item(). So it would look something like:
{ DEMO, { one, { One-Sub, Two-Sub, Three-Sub } }, { two, { ... } }, { three, { ... } } }
Matt