TBeforeExecuteHandler definition

<< Click to Display Table of Contents >>

Navigation:  Forum >

TBeforeExecuteHandler definition

Forum link

 


 

05-26-2023, 09:23 PM:

 

Hello, I cannot find anywhere the TBeforeExecuteHandlerProc definition.

 

I'm trying to use the TContentForm.Create(aFormClass: TIWAppFormClass; DoBeforeExecuteCallback: TBeforeExecuteHandlerProc = nil); reintroduce; overload;

 

I guess if I can use the DoBeforeExecuteCallback in order to invoke an action immediately after my TContentForm is created. I can use a different approach for my needs of course, but I would like to examine the TContentForm.Create methods in depth.

 

Thank you

 


 

05-31-2023, 10:16 PM:

 

it is declared in IW.Content.Base.pas unit:

 

Code:

 

TBeforeExecuteHandlerProc = procedure(Sender: TObject; var Continue: Boolean) of object;

 

 

 

and you are correct, it will be triggered while calling the inherited Execute method of the TContentBase class

 

Cheers,

 


 

06-02-2023, 08:38 AM:

 

Thank you very much Alexandre.