Hello,
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)
{
base.CopyToClipboard(coll);
}The coll object seems correct.
-
I overrided CreateDataObject,
protected override DataObject CreateDataObject(IGoCollection coll, GoDocument clipdoc)
{
DataObject l_DataObject = base.CreateDataObject(coll, clipdoc);
return l_DataObject;
}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();
return l_ok;
}When I paste, CanInsertObjects returns true.
-
I overrided PasteFromClipboard,
public override GoCopyDictionary PasteFromClipboard()
{
GoCopyDictionary l_Copy = base.PasteFromClipboard(); // NULL
return l_Copy;
}When I paste base.PasteFromClipboard() return null;
Could you please give me some advices or things to test to give you mor info ?
Thanks
Regards
Stephane