I have a hierarchy list box in a tree view, and the problem is that by default on open it is always collapsed. User has to "Expand All" every time. I'm trying to find a solution to get it either
- Expanded by default (this is my first choice)
- Always expanded.
Looking for a macro, I found a method "ExpandedNodes" in the API guide for QV 9 (this is what I use in this particular case), but no examples nor any description. It doesn't exist in QV10 API.
Appreciate any hint in the right direction or at least in the ballpark.
This is exactly what I tried before going to macros.
I didn't try recently. There were many changes since 2011, maybe it works in the latest versions. I don't need it now but will give a try eventually
I've also noticed something else. when the list box is linked to other list boxes it defaults to closed when refreshed from the server. But, if it is not linked, as it's own independant list box and refreshed manually. The list box stays opened. weird.