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
 LayerNotifyEvent "layer" = -2 on valid layer Before Delete ???
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

andyhill

Australia
155 Posts

Posted - Mar 28 2025 :  15:00:52  Show Profile  Reply

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

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



Andy

xequte

38907 Posts

Posted - Mar 28 2025 :  18:53:52  Show Profile  Reply
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
Go to Top of Page

andyhill

Australia
155 Posts

Posted - Mar 29 2025 :  14:06:37  Show Profile  Reply
Thanks Nigel, I am now using ielRemoved instead.

Andy
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: