[Pas2js] Integrate the DFM2PAS serialization in pas2js compiler.
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Mar 6 09:07:47 CET 2018
On Mon, 5 Mar 2018 19:27:57 -0600 (CST)
warleyalex via Pas2js <pas2js at lists.freepascal.org> wrote:
> Mattias Gaertner wrote
> > initialization
> > RegisterForm({$I %FILE%}, TForm1);
> >
> > Why the RegisterForm in the initialization?
>
> I'll insert this RegisterForm in the initialization section of all form
> units in the project and register each form in a "roll-your-own" registry
> with their name and class and have the registry provide the methods to
> iterate over the registered forms. It can be used in the procedure
> GotoForm(Const aFormName: String), for instance:
> gotoForm('Form2');
> gotoForm('Form4');
Can the user disable that?
Mattias
More information about the Pas2js
mailing list