Last couple of questions!

Hi guys, sorry about this



2 questions



1) is it possible to add a right click handle to a node, so the user can then copy the text inside of a node?



2) about 80% of the nodes i want to collapse completely if they have child nodes connecting. The exception to this rule is the parent node of the hole diagram, and a couple of other conditions which i wont go in to here. Whats the best way of doing this batch collapse of nodes.



Thanks

  1. Sure. Many examples of context click in the sample apps. Just add a menuitem that looks at primary selection as an IGoNode and copy inode.Text to the clipboard.



    2. Recurse down through every GoSubGraph you find at the top level, collapsing everything you find except the ones at the top level.