[fpc-devel] TCustomApplication's parent class?

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Apr 27 08:50:14 CEST 2008


2008/4/26 Michael Van Canneyt <michael at freepascal.org>:
>
>  TCustomApplication is the owner of TForm/TDataModule classes by default.
>
>  Other than that, you can create any component, and make sure it's freed
>  correctly when the application terminates, by creating it with the global
>  Application instance as the parent class. I often do this in custom code.

I just noticed that it is common usage to call
SomeForm.Create(Application), which is now not possible. As it stands
now, it breaks your fpGUI article's demo application as well, which I
don't want to do. :)

OK, I'll change TfpgApplicationBase to derive from TComponent again.

Regards,
 - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list