Normally the user cannot select anything in a GoOverview, so I’m not sure what you mean.
what I want to do was to have two views, one display a bunch of nodes, other will monitors the other view. If user selected any node/nodes then those node/nodes will be display on the monitoring view.
That happens automatically already. The GoOverview will automatically scroll around to make sure the rectangle representing the observed view’s DocExtent is visible.
I will have view1 and view2
Are both views showing the same document?
yes, the ObjectBrowser is partially what I want to implement. But how do you remove unselected nodes instead of removing the links. what kind of layer that would be?
The Classier example has a layer that just contains selected nodes. That’s the layer you want to include in view2, and (presumably) not the other document layers.
Yes, I want to display other layers in view2 other than what selected in view1. The Classier example is very confusing. Do you have a better one that suite my purpose
However, I have the following code makes what selected in goViewDiscovery and display on goView. But my problem is the link got copied to goView but doesn’t connected to the node. In other word, if I drag the node in goView out of the link then the link disconected from that node. I want the link to link the node/nodes after they’re being copy over.
GoObject m_newLayers = new GoObject [goViewDiscovery.Selection.Count];
for (int i = 0; i < m_newLayers.Length; i++)
GoObject mobj = m_newLayers.Copy();
Here’s the relevant code from the Classier sample. When initializing, create a layer: