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

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Fri Jun 19 14:16:15 CEST 2009


About previous comments.

Application cannot be a unit because this is backwards incompatible.

Application cannot be a function because this is backwards incompatible.

It could be tested if CustApp may have a global variable, for example
CustomApplication and somehow link it to the Application variable in
forms. Probably if CustomApplication = nil then LCL creates it's
application and set's it to CustomApplication too, if not, it just
uses whatever is already in CustomApplication. Not sure how to keep
both the same if CustomApplication changes, then Application needs and
update and vice-versa

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list