Hi,
- this.Handle.Brush = Brushes.Pink;
Jake,
I will check the subGraphApp but i just wanted to tell you that the differnce between the top sequence1 subgraph and the one below it is that the top sg has go objects inside it and the one below it doesn’t have. maybe this causes the problem and takes the handle to the middle?
make sense?
Yes, you should have something inside your subgraphs, other than the standard Handle and Label.
Wlater, i’m confused.
i cannot just put something inside the subgraph just to make the handle move. can’t i control it by overriding some method?
one more thing, if you look at the picture you can see that the subgraph named sequnce2 (in the lower parallel execution) contains 2 nodes and a link. the “problematic” subgraph (sequence1) contains just the same objects so its not really empty. its empty just from the end user experience.
If that “Sequence1” (in the lower “Parallel Execution”) has the same round start and end nodes as the “Sequence2”, I’m surprised. If they are implemented the same way and contain the copies of the same child objects, they ought to look and act the same way.
Now that you mention it, I notice that the upper “Sequence1” doesn’t look quite right either. Does it have the green and red round start and end nodes?
Yes, “Sequence1” has the same nodes as “Sequence2” look at the following picture:
You could try using a GoSubGraph.CollapsedObject to make sure the collapsed subgraph is the size you want. The following code does that by using a GoRectangle that doesn’t paint anything.
protected override GoObject CreateCollapsedObject() {
GoRectangle r = new GoRectangle();
r.Brush = null;
r.Pen = null;
r.Size = new SizeF(100, 20); // big enough to surround the Label
r.Selectable = false;
return r;
}
You could also try changing the value of GoSubGraph.CollapsedLabelSpot, which controls where the Label is relative to the CollapsedObject when the subgraph is collapsed.
I know you done other customizations regarding size, so I don’t know how this might interact with them in your environment.