LISTBROWSER_Show/HideImage bug

4 posts / 0 new
Last post
Henochius
Henochius's picture
Offline
Last seen: 6 years 5 months ago
Joined: 2018-06-03 22:28
LISTBROWSER_Show/HideImage bug

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.

thomas
thomas's picture
Offline
Last seen: 3 months 6 days ago
Joined: 2011-05-16 14:23
Re: LISTBROWSER_Show/HideImage bug

Works for me, both with OS 3.1 + ClassAct and OS 4.1 FE.

mritter0
mritter0's picture
Offline
Last seen: 2 years 5 months ago
Joined: 2014-04-21 21:15
Re: LISTBROWSER_Show/HideImage bug

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.

Henochius
Henochius's picture
Offline
Last seen: 6 years 5 months ago
Joined: 2018-06-03 22:28
Re: LISTBROWSER_Show/HideImage bug

OK, I have ascertained the solution: you have to pass LBNA_Flags, LBFLG_HASCHILDREN | LBFLG_SHOWCHILDREN for the non-leaf nodes.

Log in or register to post comments