Copying Links

  1. I want to copy the links from one node to another (and then delete the original). BUT when I call
    the link l is removed from the original.Node.TopPort.SourceLinks which stuffs up the iterator. Is this a bug?
  2. Small bug? TopLeftMargin = new SizeF(X,Y) sets Top to Y and Left to X.
  1. Yes, that makes sense. One way around this is to make a copy of the set of links first, and then iterate over that collection, rather than over the GoPort.Links enumerable.
  2. No, that’s right–the constructor for SizeF is SizeF(width, height), so the left margin will correspond to the width, and the top margin will correspond to the height.
  1. OK
  2. My comment was more aimed at the name of the method rather than whether it was right perhaps MarginLeftTop
  3. Is there any way to control the size of the TextBox editor for a TextLabel?
  1. Sure–override GoText.CreateEditor to call the base method and modify the Bounds of that GoControl to suit your tastes.