I want to copy/paste my objects inside a single GoView but no objects are pasted. Copyable objects in my app include GoNodes, Subgraphs, TextBoxes, and links. I have serialized all my classes and have used your serialization example to both store and retrieve my image. I’ve looked at the example (Demo1) code for copy/paste insights and used it as a starting point but I’m still missing a piece of the puzzle because nothing shows up when I do the paste. Here’s what I have so far:
- I have a context menu for each object class that has a copy menu item. When clicked, the associated method calls GoView.EditCopy (among other things). My copy command code was lifted directly from Demo1.
- Each object class overrides the CopyObject method, which returns the copied object.
- I have a context menu for my GoView which implements a paste menu item. When clicked, the associated method calls GoView.EditPaste (among other things). My paste command code was lifted directly from Demo1.
What else am I missing?
Thanks a lot.