Re: Tree using wxEuphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu