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
 Problem with copy and paste objects.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

sssl

Poland
3 Posts

Posted - Jun 03 2016 :  15:02:48  Show Profile  Reply
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

w2m

USA
1990 Posts

Posted - Jun 03 2016 :  15:28:59  Show Profile  Reply
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
Go to Top of Page

sssl

Poland
3 Posts

Posted - Jun 03 2016 :  16:45:07  Show Profile  Reply
Hallo Bill,

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

Slavo
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: