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
 Issue with OnLayerNotifyEx: event = ielRemoved
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - May 05 2024 :  09:01:05  Show Profile  Reply
procedure TForm1.ImageEnView1LayerNotifyEx(Sender: TObject; layer: Integer; event: TIELayerEvent);
begin
  if event = ielRemoved then
  begin
    // THIS IS NOT TRIGGERED BY: ImageEnView1.LayersRemove(LYR_SELECTED_LAYERS); !!
    CodeSite.Send('ImageEnView1LayerNotifyEx: ');    
  end;
end;


Unfortunately, there is no TImageEnView.OnLayerRemoved event!

xequte

38608 Posts

Posted - May 05 2024 :  17:05:24  Show Profile  Reply
As per the documentation, OnLayerNotify only occurs for user actions, not programmatic ones. Please add your own code after your call to LayersRemove()


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