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
 help: can selection keep when select a layer?
 New Topic  Reply to Topic
Author  Topic Next Topic  

albert

China
1 Posts

Posted - Feb 11 2026 :  21:09:49  Show Profile  Reply
I use new ImageEnview ,first I select a region, then I select a layer, selection is deselected ,can selection keep when select a layer ?

ImageEnVect can do this, thanks a lot

xequte

39327 Posts

Posted - Feb 13 2026 :  14:26:42  Show Profile  Reply
Hi

Adding a layer, changes CurrentLayer (the layer that will be selected) so it is cleared.

You would need to do it this way:

idx := ImageEnView1.LayersCurrent;
ImageEnView1.SaveSelection();

... Add layer

ImageEnView1.LayersCurrent := idx;
ImageEnView1.RestoreSelection();

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