Problem with mapping a directory tree to a tree control: It takes a
while to recurse subdirs and map them to nodes. This is solved in
some books I've seen (MacDonald, Albahari) by reading the subdir only
when its node on the tree control is opened.
Has anyone pre-packaged this functionality into a control?
I appreciate the followup re tree nodes. I did know how to populate
the tree; I've done that before. However, mapping a tree to a
directory structure can get complex, so I was wondering if anyone had
a custom control that handled any of the following:
File system monitor: For updating the tree in the background.
Would help to prevent faults when the file system was changed.
'Just In Time' population of tree nodes: Building the tree from a
large directory structure takes a lot of time. Better to build
it dynamically as nodes are opened. Code for this exists in
the references that I mentioned, but not as an integral part of
a custom control.
Threaded update: This could populate the tree in the background.
After setting up the top level nodes (like 'Just in Time'
above), the thread could work on the other nodes. This could
be combined with the JIT operation, in case the user got ahead
of the background thread by descending into one node before the
thread got there.
Those are just a few that I thought of. Seems like this is a general
purpose kind of control. Does anything like this exist already?