Profile Picture

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

Posted By Craig Swearingen 12 Years Ago

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

Author
Message
Craig Swearingen
Posted 12 Years Ago
View Quick Profile
Supreme Being

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
Last Active: 7 Years Ago
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 (252 views, 60.00 KB)
Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 1 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
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





Similar Topics


Reading This Topic