[Lazarus] Multiple .lrs files for one .pas

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Nov 24 19:04:07 CET 2012


On Sat, 24 Nov 2012 10:27:22 +0100
Krzysztof <dibo20 at wp.pl> wrote:

> Hi,
> 
> Is it possible to have more than one .lrs file for one .pas file? 

Yes.
You can manually create more files and add them to the code.
The IDE maintains only the first in the initialization section.

> For
> example, I have one MyDialogs.pas unit. Inside this unit I have more than
> one forms like TMyForm1, TMyForm2 etc. And I would like to design each of
> them using form designer. This is probably not possible

It is not possible in Lazarus.

> (because I don't know how F12 should work in this case), 

Yes, and many other features and error handlers would become more
complicated.


> but it could be interesting
> feature. Similar like in android programming, where xml layouts are
> not strongly linked with .java files and those layouts can be designed in
> external tools (like DroidDraw)


Mattias




More information about the Lazarus mailing list