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
Author Previous Topic Topic Next Topic  

PeterPanino

860 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

38182 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

860 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

860 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

38182 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

38182 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

PeterPanino

860 Posts

Posted - Sep 24 2020 :  11:09:35  Show Profile  Reply
Hi Nigel,

 
We've added an OnActionExecute event to handle this.


I have the newest beta source, and it seems that OnActionExecute is implemented only in the base abstract class TIEView and not accessible in the Object Inspector of e.g. TImageEnView.

So how can it be used?
Go to Top of Page

xequte

38182 Posts

Posted - Sep 24 2020 :  18:49:29  Show Profile  Reply
Hi

Please email us for 9.2.0.

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