I have a problem to understand the parameters of TCustomForm.CreateNew in WEBLib.Forms line ~2737
I call the TWebForm CreateNew constructor. I want a callback, if the form is created.
I use the parameter "AProc: TFormCreatedProc".
But the callback is never called.
If I debug the code I see this lines:
if AFileName <> '' then
Application.LoadForm(Self, AFileName)
else
if Assigned(FCreatedProc) then
FCreatedProc(Self);
The AFilename is always set. So the CreatedProc is not called