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
 How to hide layers in ImageEnLayerMView?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Feb 20 2019 :  05:05:59  Show Profile  Reply
Hello,

I have linked ImageEn to ImageEnLayerMView control and things are working as expected.

When ImageEn opens a file with multiple layers all the layers in the files are show properly in ImageEnLayerMView but I have a need to hide all the Mask layers in ImageEnLayerMView.

How to achieve this?

TIA


Yogi Yang

xequte

38180 Posts

Posted - Feb 20 2019 :  15:20:51  Show Profile  Reply
In the upcoming 8.3.0, you can use the OnIncludeLayer event:

// Exclude masks from view
function TMyForm.IELayerMView1IncludeLayer(Sender: TObject; LayerIndex: integer; Layer: TIELayer; var Include: Boolean);
begin
  if Layer.IsMask = False then
    Include := False;
end;


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