ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Copy and Past of an Annotation Object
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rswyman@docuxplorer.com

USA
156 Posts

Posted - Jul 28 2016 :  14:20:50  Show Profile  Reply
Hi All,

When performing a copy and paste operation for annotation we get the following problems.

ImageEnVect1.ObjCopyToClipboard;
ImageEnVect1.ObjPasteFromClipboard(75, 75);

1. On the paste operation, it completes but an exception is raised "Can not open clipboard: Access is denied."

or

2. The annotation that was selected to be copied is actually move to the offset position 75

Thanks for your thoughts

Thanks
Ron

Imageen v6.3

xequte

38611 Posts

Posted - Jul 28 2016 :  17:20:47  Show Profile  Reply
Hi Ron

Pasting clears any selected objects, so you should use:

  ImageEnVect1.ObjCopyToClipboard;
  ImageEnVect1.UnSelAllObjects;
  ImageEnVect1.ObjPasteFromClipboard(75, 75);


I cannot reproduce the crash. Can you give me more info?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - Jul 28 2016 :  22:35:37  Show Profile  Reply
I used ImageEnVect1.UnSelAllObjects which helped with one of the problems but I also found that a menu update routine was checking the clipboard for a CF_PICTURE format after the ImageEnVect1.ObjPasteFromClipboard was executed. So I guess the clipboard wasn't released right away and caused my menu update to fail.

Thanks for your help!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: