Re: EuGTK:How to Build a TreeView
- Posted by irv Aug 23, 2019
- 858 views
euphoric said...
irv said...
Yes, works fine when the curlies all match up
Please post a working version!
Hint: since the failure was at the point where Tools and Home Improvements was supposed to expand, but didn't, I started checking there. Shortly after was the extra curly bracket.
https://openeuphoria.org/pastey/314.wc
You can add the connection to respond to a double-click on a category/subcategory as shown in previous pasteys. Also, check the GtkTreeView and GtkTreeSelection docs for the available signals, so you can optionally expand categories as the mouse passes over them, or only expand when clicked. Single and double-clicks can do different things, depending on what you want.