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
 Problem with copy and paste objects.

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
sssl Posted - Jun 03 2016 : 15:02:48
I'm using ImageEn v6.2.2.

I tried to use two functions: "ImageEnVect1.ObjCopyToClipboard" and "ImageEnVect1.ObjPasteFromClipboard(1, 1)". First one should copy any objects form a picture and second one should paste it on the picture (this new object should have the same form).



I couldn't find any new object after this two functions - maybe this paste function should work other way, as described above?

Thanks for a help and any comment..:)

Slavo
2   L A T E S T    R E P L I E S    (Newest First)
sssl Posted - Jun 03 2016 : 16:45:07
Hallo Bill,

thanks for Your explanation - it works ...:)

Slavo
w2m Posted - Jun 03 2016 : 15:28:59
Try this:
procedure TForm1.Paste1Click(Sender: TObject);
begin
  ImageEnVect1.UnSelAllObjects;
  ImageEnVect1.ObjPasteFromClipboard(-1, -1);
  ImageEnVect1.Update;
end;

The pasted object will be located on top of the existing object.
To offset the paste from the copied object use large values (100, 100) not (1,1)... ie... ImageEnVect1.ObjPasteFromClipboard(100, 100); parameters of (1,1) pastes the object only offset by 1 from the original object so you can not see it visually.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development