Hi all!!
I'm creating a new form class with some extra features, derived from TCustomForm. But when I override the procedure CreateWnd to register the new instance of my form class as the main form of the application, I receive a warning talking that my form class (TSecureForm) and TForm are not related. The CreateWnd code is:
procedure TSecureForm.CreateWnd;
begin
if (Applicationnil) then
Application.UpdateMainForm(TForm(Self));
inherited CreateWnd;
end;So, I take a look into TApplication.UpdateMainForm and I see:
procedure TApplication.UpdateMainForm(AForm: TForm);My question is: The parameter AForm should be of type TCustomForm instead of TForm?
