NTreeList.EnsureVisible doesn't work when scroll bars are missing


NTreeList.EnsureVisible doesn't work when scroll bars are missing
Author
Message
Craig Swearingen
Craig Swearingen
Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)
Group: Forum Members
Posts: 99, Visits: 654

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?


Attachments
NevronDMTest.zip (300 views, 60.00 KB)
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hello Craig,

Thanks for the example.

Unfortunately, when vertical scroll bar is not visible you can display the tree list only with the first node on topmost position.


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search