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
 Hidden Layer(s)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List


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
spetric Posted - May 03 2019 : 04:45:21
Is it possible to have layers that are not shown in TImageEnLayerMView?
Some kind of hidden (internal) layers.

5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 07 2019 : 17:13:31

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);
  Include := Layer.Tag = 1;

Xequte Software
spetric Posted - May 06 2019 : 16:23:03
Hi Nigel,

Tag property seems a good approach.
However, I still must check tag value inside IncludeLayer event, right?
xequte Posted - May 04 2019 : 20:26:36
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:

Xequte Software
spetric Posted - May 04 2019 : 14:54:01
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?

yogiyang Posted - May 04 2019 : 08:59:17
Check Nigel's reply to my similar query:

Yogi Yang