[lazarus] LFM Files

Marc Weustink Marc.Weustink at cuperus.nl
Thu Oct 12 09:36:36 EDT 2000

+ From: Mattias Gaertner [mailto:nc-gaertnma at netcologne.de]
+ >As Shane already said, LFM files are just DFM (Delphi Form) files. If
+ >you need the exact format, I can mail you a description I've used for
+ >myself for the Free Pascal streaming code.
+ I want to participate in writing the object inspector for lazarus
+ and looked up for documentation. The current lazarus code creates LFM
+ files which looks like DFM files, but the web page says:
+ I am glad to hear that LFM = DFM, since the format is simple and clear.

+ Please mail me your description of the format.

Let me make some things clear. I've the feeling that we are heading in the
wrong direction.

If you want to write an object inspector, you don't need the DFM layout. You
can make object inspector based upon the RTTI info.

If you want to be able to design/layout forms and recreate them, you need to
stream this info to a file (LFM). The format here is at that moment not the

If you want the LFM to be DFM compatible you should stream the info using
the DFM streamer (if it exists, if not, and thats the only case, you need
the DFM layout)

If you want the LFM in an XML format you should stream the info using the
XML streamer.

Now back to your original question, if you want to create an object
inspector, I would say GREAT, but you don't need the DFM layout.

+ BTW, for what is your streaming code? Is it part of the free
+ pascal compiler or is it for lazarus?

AFAIK part of FPC.


More information about the Lazarus mailing list