iup
iup copied to clipboard
Tree Example on Windows: branchopen-callback never called back
FYI -
Tree example is not filling out the trees properly.
Clicking on a directory doesn't enter the branchopen-callback function.
See image:

Impl: CCL64 bits latest version on Win10
Thanks for the bug report! Will look into it today
Hello, the same on Linux SBCL 1.4.5 debian x64 for me.
I'm struggling to reproduce this one. I am curious about what your exact action is: Clicking on a node (one left mouse click) will move the selection, but not open the node. Pressing RETURN key on a node should trigger a branchopen callback. Also, clicking + next to a node (when there is one) will trigger a branchopen callback.
Cool I can reproduce it on Linux at least
Pressing RETURN key on a node should trigger a branchopen callback.
I did not know that! (there's no manual...)
I'll try again and report.
Note that directories that contain lots of files are not displayed with a "+" or similar icon that would show that it can be opened.
Err so problem on windows. I had the sound on this morning and it beeps at me every time I press enter in the tree. btw, the manual describes the behaviour of keys under the Navigation section: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptree.html I thought it was supposed to just follow the native controls behavior, but maybe not. Extra digging required.
There's another example, in issue/29 branch that is a more comprehensive example btw