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
 Prevent layers from being deletion
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yeohray2

Malaysia
100 Posts

Posted - Aug 27 2021 :  07:48:10  Show Profile  Reply
Hi, is it possible to prevent specific layers from being deleted? For e.g. I have an image with a background layer, a magnifier layer, a work layer, and finally the 'user' layers. I want to prevent users from deleting the first 3 layers when they press the DELETE key. I've tried using the Locked and Selectable properties but they don't prevent deletion.

Thanks in advance.

Ray

xequte

38222 Posts

Posted - Aug 27 2021 :  21:45:18  Show Profile  Reply
Hi Ray

In the next release you can add loPreventLayerDelete to LayerOptions, and then handle the Delete key yourself. You can email me for a pre-release.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: