Re: EuGTK:How to Build a TreeView

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu