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
 Get notification after "Save as..." from Toolbar?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PeterPanino

359 Posts

Posted - Jul 07 2020 :  06:55:16  Show Profile  Reply
How can I get a notification and the filename, after I have successfully saved the current ImageEnView image to disk by clicking on the "Save as..." toolbar button of the TImageEnViewToolbar:

xequte

5390 Posts

Posted - Jul 07 2020 :  17:54:22  Show Profile  Reply
Hi

You can monitor IO events in TImageEnView:

https://www.imageen.com/help/TImageEnView.OnFinishWork.html

And check TImageEnView.IO.Params.Filename.


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

PeterPanino

359 Posts

Posted - Jul 08 2020 :  15:52:47  Show Profile  Reply
The imgMainFinishWork event-handler is not triggered when PASTING an image from the clipboard (either with CTRL-V or with the Paste ToolButton on the ImageEnView Toolbar).

There is also no OnPaste event in TImageEnView. It is also important to know whether the whole image has been replaced by the Paste action or whether a selection on the existing image has been replaced by the Paste action. For this purpose, I would need both an OnBeforePaste event and an OnPaste event which is triggered after the Paste action.

So how can I get notified when I paste an image from the clipboard?
Go to Top of Page

PeterPanino

359 Posts

Posted - Jul 08 2020 :  17:23:59  Show Profile  Reply
With:

procedure TformMain.ImageEnView1FinishWork(Sender: TObject);
begin
  if Sender is TImageEnIO then
  begin
    CodeSite.Send('TformMain.ImageEnView1FinishWork: IO Task has finished');
  end;
end;


...I am notified that a TImageEnIO action has been completed. But how can I get the information WHICH TImageEnIO action has been completed?
Go to Top of Page

xequte

5390 Posts

Posted - Jul 09 2020 :  03:59:44  Show Profile  Reply
Hi Peter

I'll add an event for this in a coming update.


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

xequte

5390 Posts

Posted - Jul 22 2020 :  22:28:51  Show Profile  Reply
Hi

We've added an OnActionExecute event to handle this.

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