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 (Application<>nil) 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?
--
The best regards,
Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus