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
 LayerNotifyEvent "layer" = -2 on valid layer Before Delete ???

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

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
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
andyhill Posted - Mar 28 2025 : 15:00:52

procedure TMainForm.ImageEnViewLayerNotifyEx(Sender: TObject; layer: Integer; event: TIELayerEvent);

  if event = ielBeforeRemove then begin
    if ImageEnView.Layers[layer].Tag > 1 then begin 



Andy
2   L A T E S T    R E P L I E S    (Newest First)
andyhill Posted - Mar 29 2025 : 14:06:37
Thanks Nigel, I am now using ielRemoved instead.

Andy
xequte Posted - Mar 28 2025 : 18:53:52
Hi Andy

As per the documentation, ielBeforeRemove may return layer as LYR_ALL_LAYERS (-3) or LYR_SELECTED_LAYERS (-2).

Nigel
Xequte Software
www.imageen.com