M
Michael A. Covington
I'm extending TreeView to build a file/directory chooser like the one in
NTBACKUP.
I've implemented four-state checkboxes; no problem.
And I know how to explore files and directories and populate the tree
(including populating branches on demand, when the user first expands them,
rather than trying to search the entire computer at the beginning).
What I'm stuck on is re-entrancy, or multiple paths to the same location.
E.g., "My Documents" at the root of the tree is also "c:\documents and
settings\whatever\My Documents". Any shortcut can create the same
situation.
In NTBACKUP, you simply see the same nodes in both places, complete with
checkmark status.
How should I approach this? In a TreeView, can the Nodes list of two nodes
be the same?
This also implies that any recursive tree crawling that I do must be
cycle-proof.
Any ideas, deep thinkers out there?
NTBACKUP.
I've implemented four-state checkboxes; no problem.
And I know how to explore files and directories and populate the tree
(including populating branches on demand, when the user first expands them,
rather than trying to search the entire computer at the beginning).
What I'm stuck on is re-entrancy, or multiple paths to the same location.
E.g., "My Documents" at the root of the tree is also "c:\documents and
settings\whatever\My Documents". Any shortcut can create the same
situation.
In NTBACKUP, you simply see the same nodes in both places, complete with
checkmark status.
How should I approach this? In a TreeView, can the Nodes list of two nodes
be the same?
This also implies that any recursive tree crawling that I do must be
cycle-proof.
Any ideas, deep thinkers out there?