On Wed, Apr 14, 2010 at 01:53:55PM +0200, Graeme Geldenhuys wrote: > On 14 April 2010 13:09, Kjow wrote: > > > > Is it possible? > > Yes, but there is an alternative too. Very non-OOP, but Lazarus and > Delphi enforce it for form creation (and requirement by form > designer). In your unit with the TMainForm, there should be a lovely > global instance variable called MainForm that you can access from > everywhere.
Little bit OT: Is this global var really neccessary? Normally I delete all those variables in my Delphi projects and create my forms on the fly and everything works fine. Is this really a requirement for the lazarus form designer? regards, Stefan -- ---------------------------------------------------------------------------- Absender: Kommunikation : iret GmbH web : www.iret.de Stefan Hille email: [email protected] Paul-Engelhard-Weg 50a voice: +49 251 615138 D-48167 Muenster fax: +49 251 617631 Vollstaendige Firmenbezeichnung iret Gesellschaft zur Entwicklung elektronischer Steuerungen mbH Höltenweg 103 48155 Münster Amtsgericht Münster, HRB 3724 Geschäftsführer: Renate Rittmeyer-Müller Stefan Hille -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
