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
 Hidden Layer(s)
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

spetric

Croatia
308 Posts

Posted - May 03 2019 :  04:45:21  Show Profile  Reply
Is it possible to have layers that are not shown in TImageEnLayerMView?
Some kind of hidden (internal) layers.

TIA,
Siniša

yogiyang

India
725 Posts

Posted - May 04 2019 :  08:59:17  Show Profile  Reply
Check Nigel's reply to my similar query:
https://www.imageen.com/ieforum/topic.asp?TOPIC_ID=3782


Yogi Yang
Go to Top of Page

spetric

Croatia
308 Posts

Posted - May 04 2019 :  14:54:01  Show Profile  Reply
Thanks Yogi.

So, in order to hide some layers (not only mask) what would be the best approach:
to use tag or group them under same group ID?

Siniša
Go to Top of Page

xequte

38182 Posts

Posted - May 04 2019 :  20:26:36  Show Profile  Reply
Hi Sinisa

It would depend what rule determines whether a layers is to be hidden or not.

If it is too slow to check in the event, then just use the tag property:

https://www.imageen.com/help/TIELayer.Tag.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

spetric

Croatia
308 Posts

Posted - May 06 2019 :  16:23:03  Show Profile  Reply
Hi Nigel,

Tag property seems a good approach.
However, I still must check tag value inside IncludeLayer event, right?
Go to Top of Page

xequte

38182 Posts

Posted - May 07 2019 :  17:13:31  Show Profile  Reply
Hi

Yes, there is no property (at this stage) to exclude a layer from TImageEnLayerMView, so you can just use tag for this.

Layer.Tag := ord( showThisLayer );


function TMyForm.IELayerMView1IncludeLayer(Sender: TObject; LayerIndex: integer; Layer: TIELayer; var Include: Boolean);
begin
  Include := Layer.Tag = 1;
end;


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