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
 Only allow pasting of shape layers?

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
tbn8260 Posted - Jul 02 2024 : 17:12:56
Is there a way to only allow pasting of shape layers in ImageEnView? I don't want users being to paste images. I don't want to disable the COPY/PASTE feature of ImageEnView. I just want to restrict to what can be paste.

Is there a way to do that?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 06 2024 : 22:13:55
Sorry, there is not an option for that at this time. You should override the copying yourself, i.e. if shape layers are selected call ImageEnView1.Proc.CopyToClipboard(); otherwise show an error.

Of course, that would still allow images to be pasted from other applications, so if you want to prevent that, intercept the pasting instead:
- Lock the TImageEnView from updating (ImageEnView1.LockUpdate)
- Call ImageEnView1.Proc.PasteFromClipboard();
- Check added layers are shapes, otherwise remove them
- Unlock the TImageEnView updating

Nigel
Xequte Software
www.imageen.com