This seems to work, but the TreeNode array is added twice to
TreeConfiguration, and TreeProject is blank. strange...
TreeNode[] allNodes = ProjectHelper.getAllNodes();
TreeConfiguration tc = new TreeConfiguration(allNodes);
TreeProject tp = new TreeProject(allNodes);
panelTree.Controls.Add(tc);
panelTree.Controls.Add(tp);
tc.Dock = DockStyle.Left;
tp.Dock = DockStyle.Fill;
deko - 28 Feb 2006 01:52 GMT
> This seems to work, but the TreeNode array is added twice to
> TreeConfiguration, and TreeProject is blank. strange...
[quoted text clipped - 6 lines]
> tc.Dock = DockStyle.Left;
> tp.Dock = DockStyle.Fill;
It APPEARS as if the nodes are added twice to TreeConfiguration, but they
are in fact added to TreeProject. It's just that tree in TreeProject is
being drawn OVER TreeConfiguration. For some reason the splitter does not
seem to be working right.... ???
deko - 28 Feb 2006 02:03 GMT
Even if I do this:
TreeNode[] allNodes = ProjectHelper.getAllNodes();
TreeConfiguration tc = new TreeConfiguration(allNodes);
TreeProject tp = new TreeProject(allNodes);
panelTree.Controls.Add(tc);
panelTree.Controls.Add(tp);
tc.Dock = DockStyle.Left;
tp.Dock = DockStyle.Right; <<=== * CHANGE *
the TreeProject nodes are STILL on top of the TreeConfiguration treeview.
I'm starting to think that you can't have two TreeView controls share the
same container. If this is the case, then I can't use a splitter.
Other suggestions?