Hello, I have an application where I populate dynamically a tree with branches and leaves based on the exploration of external resources, that worked fine with IUP 3.8 (as far as I can remember). I populate a branch with its children when said branch is selected ans has no child, in selected_cb(). But with 3.10.1, I can no longer select a branch when it is the sole element in the tree, thus preventing me from doing anything useful in that case (change the getResources() function at the beginning of the script).
Even when I populate the tree with more than one branch, I can only select the second one before I can select the first. Setting tree.value = -1 doesn't change anything. Setting ADDEXPANDED to "NO" doesn't enable me to select the first branch either, and has the additional issue of preventing me from expanding the branches after having dynamically populated them. How can I tell the tree I want to be able to select the first branch I added right from the start? Regards, -- Benoit.
IupTreeSelectProblem.lua
Description: Binary data
------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
