[Lazarus] Some thoughts about the global 'Application' instance.

Graeme Geldenhuys graemeg at opensoft.homeip.net
Thu Jun 18 16:23:21 CEST 2009


Joost van der Sluis wrote:
> 
> Can we move this functionality to the CustApp unit? That way you can
> always refer to custapp.Application and you have the 'current'
> application instance. 

Without looking at the code, this sounds like a better plan. I can't
remember the exact details (it was very long ago), but I do remember I
hit a similar issue in fpGUI Toolkit, and instead implemented my own
fpgApplication singleton, which descended directly from TComponent to
overcome the issue.

Being able to go back to TCustomApplication included in FPC would be
nice. Not to mention the more well known Application instance instead of
fpgApplication instance.


Regards,
  - Graeme -

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





More information about the Lazarus mailing list