Just hit a problem I wasn't expecting - the Tree scroll bar, at 100%, does not reveal the bottom of a (large) fully-expanded tree? I have just tried it by building a tree of my drive C. That's 24577 folders and 233693 files. The whole tree is built, I can programmatically select multiple items on it and later collect those selections, even if they are not displayed.
Edit: MSDN: Version 4.71. TVGN_LASTVISIBLE Retrieves the last expanded item in the tree.
Code: Select all
#TVGN_LASTVISIBLE = 10
Procedure TreeTop()
;------------------
Protected hwndTV.i = GadgetID(#MyTree)
Protected hItem.i = SendMessage_(hwndTV, #TVM_GETNEXTITEM, #TVGN_ROOT, 0)
SendMessage_(hwndTV, #TVM_ENSUREVISIBLE, 0, hItem)
EndProcedure
Procedure TreeBtm()
;------------------
Protected hwndTV.i = GadgetID(#MyTree)
Protected hItem.i = SendMessage_(hwndTV, #TVM_GETNEXTITEM, #TVGN_LASTVISIBLE, 0)
SendMessage_(hwndTV, #TVM_ENSUREVISIBLE, 0, hItem)
EndProcedureAnyone else encountered this issue and fixed (or fudged) it?

