Problem:
Users of my application can create unlimited layers and work on each layer at one time.
The copy and paste operation work fine means that the user can do Ctrl-C & Ctrl-V and the Ctrl-drag copy in the document default layer.
The copy and paste operation work fine means that the user can do Ctrl-C & Ctrl-V and the Ctrl-drag copy in the document default layer.
However, when user are in any others layers only the Ctrl-drag copy is working. The Ctrl-V will always paste the copyobject into the document default layer.
The following is my code to copy the object:
public class NodeOutput : GoMultiTextNode
{
:
:
public override GoObject CopyObject(GoCopyDictionary env)
{
NodeOutput newobj = (NodeOutput)base.CopyObject(env);
newobj.UserObject = new NodeOutputInfo(newobj);
return newobj;
}
:
:
}
{
:
:
public override GoObject CopyObject(GoCopyDictionary env)
{
NodeOutput newobj = (NodeOutput)base.CopyObject(env);
newobj.UserObject = new NodeOutputInfo(newobj);
return newobj;
}
:
:
}
I am trying to control the user to paste the object into the same layer as the copied object:
newobj.Layer = this.Layer in the above code, however the Layer property is read-only.