Is it possible to place palettes (nodes) into TreeView?
Currently, I use custom palettes (nodes) (loaded from file) : palette.AppendChild()
How can I place them in TreeView instead so that I can have Child and subChild palettes or nodes? (I am not sure which one is the right term, palette or node. But am referring to objects or connectors in the paletteGroupBar).
For instance, my TreeView can be like the followig:
Main (the root node)
- Object 1
- Object 2 (like folder)
- Object 2-1
- Object 2-2
- Connector1 (like folder)
- connector 1-1
- connector 1-2
The requirement is that, the nodes with subChild can be dragged into the Diagram area. If there is no childNodes, the higher level can be dragged.
In the above example: Object 1 can be dragged ; Object 2 cannot be dragged because it has got childNodes, thus Object 2-1 and Object 2-2 can be dragged. Similarly, Connector 1 cannot be dragged but connector 1-1 and connector 1-2 can be dragged into the diagram area. That means, those which have childNodes are like folders. Thus, Object 2 and Connector 1 are folders.
Does anyone has done something similar to that?