treeview problem...

BlitzMax Forums/BlitzMax GUI Programming/treeview problem...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Every node of a treeview is a TGadget, thus you can make usage of the SetGadgetExtra()/GadgetExtra() functions, which can attach an object to the TGadget (your nodes).!

Create only one! Textarea.

Attach your “textarea text” via SetGadgetExtra to the node you add to the treeview.

When you select a node later in the treeview, read the “textarea text” via GadgetExtra and present it in the real Textarea. Just don't forget to cast the object retrieved from the node, depending on what you have stored.
For text: MyString:String = String(GadgetExtra(TreeviewNode))