Re: EuGTK:How to Build a TreeView
- Posted by irv Aug 22, 2019
- 925 views
Solved. You have to get into the guts of GTK, but it only adds a few lines of code.
See the updated function ShowSelection() in the new pasty to see how it works - it obtains the clicked (selected) item, for example, Grumpy Cat, and then obtains the item's parent, adds it to the head of our result, and recurses until there is no parent left. Results:
Mac -> The Woz -> Susan (the other kid) -> Grumpy Cat
Of course, you can format the result however you wish.
https://openeuphoria.org/pastey/312.wc
Forked into: EuGTK:TreeViiew Parents & Children