Copy-Paste does not work in my application.
The informations I can give are the following:
Ctrl-Drag of selection to make a copy in same view works.
Copy-Paste of GoDiagramComment does not work, so I think is not a serialisation problem.
I overrided CopyToClipboard,
public override void CopyToClipboard(IGoCollection coll)
The coll object seems correct.
I overrided CreateDataObject,
protected override DataObject CreateDataObject(IGoCollection coll, GoDocument clipdoc)
DataObject l_DataObject = base.CreateDataObject(coll, clipdoc);
The coll and clipdoc objects seems correct. The created DataObject seems correct, with the InnerData in 3 formats (Bitmap, UnicodeText and <MyDocumentType>.
If I paste in a text editor, I get objects labels, so copy seems working.
I overrided CanInsertObjects,
public override bool CanInsertObjects()
bool l_ok = base.CanInsertObjects();
When I paste, CanInsertObjects returns true.
I overrided PasteFromClipboard,
public override GoCopyDictionary PasteFromClipboard()
GoCopyDictionary l_Copy = base.PasteFromClipboard(); // NULL
When I paste base.PasteFromClipboard() return null;
Could you please give me some advices or things to test to give you mor info ?