Large treeview scrolling

G

Guest

I have a large treeview with more than 100,000 items. When i programmatically
select a node it will not always be visible
node = jumplist(0)
CatalogTree.SelectedNode = node
node.EnsureVisible() ' Doesn't do anything useful. Node might scrolled away

I would like to programmatically scroll the selected item to the top of the
viewable area.
 
M

Mark

Treeview only shows a maximum number of items, can't remember the number
when I did a test but it was around 80k or so.

I can highly recommend Virtual Tree from www.infralution.com

You can use the virtual mode and only have the nodes that are visible be in
memory, it's very fast.

Mark
 
G

Guest

Third party component will be great for about 5 years. When the next
Microsoft platform comes then you are screwed.
 
G

Gabriel Lozano-Morán

The visible nodes are limited to a max value of 65535.

Gabriel Lozano-Morán
 
G

Gabriel Lozano-Morán

Each visible node will get a window handle and the maximum number of window
handles is limited to 65536 because Windows XP is compatible with 16-bit
applications. Someday when Microsoft does not have to support the old 16-bit
applications anymore you would be only limited by the available memory

Gabriel Lozano-Morán
 
G

Guest

I have 150,000 nodes in my tree. The visible nodes are about 50.
and the Ensurevisibility property doesn't work.
 
G

Gabriel Lozano-Morán

I have tried it and it seems to work as long as the selected node is under
65536.

What behaviour do you exactly notice? No scrolling or no item selected?

Gabriel Lozano-Morán
 
G

Guest

I can scroll with the mouse. I do not know how to scroll with code.
The selected item is out of view. The operator has to click the scroll bar
to find it.
I would like to scroll the selected item to the top of the viewable area
with code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top