Resize GoIconicNode

MyIconicNode is derived from GoIconicNode class and overriden DoResize method.
class MyIconicNode : GoIconicNode
{
public MyIconicNode()
{
base.Resizable = true;
base.Reshapable = true;
}
...
public override void DoResize(...)
{
...
}
}
One MyIconicNode object is created and added to the document. After resizing the object, its size is changed. But the DoResize method is not invoked. I tried this in IconicApp sample also, it does not work there either.
Did I miss something? What should I do to retrieve the original and new sizes?
I am using Win 4.0 GoDiagram.

In GoIconicNode, the SelectionObject for the node is the Icon. So… it is the Icon object that gets the DoResize calls.

How could I override the DoResize method?

If you’re using GoImage for your icon, derive your own GoImage class and override DoResize there. Then override GoIconicNode.CreateIcon (see the code samples in the API reference) and create your own GoImage.



I should ask what you’re ultimately trying to accomplish… there may be an easier way.

Jake,

Thank you!