TBeforeExecuteHandler definition - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: TBeforeExecuteHandler definition (/thread-3259.html) |
TBeforeExecuteHandler definition - giorgio_c - 05-26-2023 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 RE: TBeforeExecuteHandler definition - Alexandre Machado - 05-31-2023 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, RE: TBeforeExecuteHandler definition - giorgio_c - 06-02-2023 Thank you very much Alexandre. |