You have to override GoGeneralNode CreateIcon and create your own class for the “Icon” to override AddSelectionHandles.
here’s the code for GoGeneralNode CreateIcon (in the case where you call Initialize(ResourceManager res, String iconname, String top, String bottom, int numinports, int numoutports) )
protected virtual GoObject CreateIcon(ResourceManager res, String iconname) {
if (iconname != null) {
GoNodeIcon ni = new GoNodeIcon();
if (res != null)
ni.ResourceManager = res;
ni.Name = iconname;
ni.MinimumIconSize = new SizeF(20, 20);
ni.MaximumIconSize = new SizeF(1000, 2000);
ni.Size = ni.MinimumIconSize;
return ni;
} else {
GoDrawing rect = new GoDrawing(GoFigure.Rectangle);
rect.Selectable = false;
rect.Resizable = false;
rect.Size = new SizeF(20, 20);
return rect;
}
}
So if you aren’t using images, a simple GoDrawing or GoRectangle derived class.