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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Copy and Past of an Annotation Object

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rswyman@docuxplorer.com Posted - Jul 28 2016 : 14:20:50
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
2   L A T E S T    R E P L I E S    (Newest First)
rswyman@docuxplorer.com Posted - Jul 28 2016 : 22:35:37
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!
xequte Posted - Jul 28 2016 : 17:20:47
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