[Lazarus] Bls: how to modify or add component after Application.Run method?

Sven Barth pascaldragon at googlemail.com
Sun Jan 24 14:19:34 CET 2016


Am 24.01.2016 10:01 schrieb "Mr Bee" <pak.lebah at yahoo.com>:
>
> No, I can't put them in the Form1's OnCreate event. Because the
additional code wouldn't be just from me, but the could be from others as
well. I'd like to make the main application into a unit. So, the form
should be established on the unit call. The other would simply use the unit
and add or modify any components of the existing Form1.

That's not how things are supposed to be done AND bad style.
But if you really need to do this you must do it before the call of Run.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160124/a22aba37/attachment-0003.html>


More information about the Lazarus mailing list