I've been using the NTreeList on a form where once the form is deactivated by the user I'd like both the vertical and horizontal scrollbars that the NTreeList is using to not be shown (to maximize window real estate). During the deactivate I'm setting:
NTreeList.VScrollVisibility =
ScrollVisibility.None;NTreeList.HScrollVisibility =
ScrollVisibility.None;I've noticed when I do this the first node in the list is then shown at the top of the NTreeList even when its not been the top node during the deactivate.
If I then try to call NTreeList.EnsureVisible(lastnode) on the last node it doesn't scroll to show that node.
Also, though in my case I don't need this I noticed should the user move the cursor outside of the viewing area when the scroll bar is missing the list doesn't scroll to show the cursor (even though NTreeList.EnsureFocusedItemVisible is true).
I'm on build 11.12.14.12 under Win7. I've attached a sample program which demonstrates this.
Is there a way to scroll the list programatically when the scroll bars are not present on an NTreeList?