I have made a hierarchical listbrowser which works: everything is indented properly and can be collapsed/expanded as expected.
But there is a graphical problem: the LISTBROWSER_LeafImage image is being used for every node, not just the leaf nodes. The images I passed for LISTBROWSER_ShowImage and LISTBROWSER_HideImage are never used.
Is this a known bug of listbrowser.gadget? If so, is there any possible workaround? Or otherwise is there any working example? (The one mentioned on the page at http://www.os4coding.net/forum/hierarchical-listbrowser-example is a dead link.) Thanks.
Works for me, both with OS 3.1 + ClassAct and OS 4.1 FE.
I mentioned this on Hyperion's forum 2+ years ago. Has not been fixed. Don't know if even looked at.
Some settings in Prefs->GUI->Gadgets->Listbrowser work correctly (IIRC), some don't. I asked for an override to set what I need/want it at. Shot down. I feel every gadget's look should be totally customizable by the programmer. If we are after a certain look, too bad, so sad; this is all you get.
OK, I have ascertained the solution: you have to pass LBNA_Flags, LBFLG_HASCHILDREN | LBFLG_SHOWCHILDREN for the non-leaf nodes.