[lazarus] Location of lresources

Marc Weustink Marc.Weustink at cuperus.nl
Thu Jan 4 08:06:07 EST 2001


+ From: Mattias Gaertner [mailto:nc-gaertnma at netcologne.de]
+
+ Hi all,
+
+ I don't think, that resources are IDE specific. Perhaps you can call the
+ IDE some kind of resource editor.

KindOf

+ The LFM files could be IDE specific, because they are only usable by
+ IDE(s). The LFC files should belong to the LCL, because they
+ are simply streamed components in resource format.

They are streamed components indeed, but you may stream them in anything you
want, so I won't call them LFC. In that case LFC don't belong to the LCL but
the functionality to create "compiled resources" does.

+ The forms.pp depends on the resources (e.g.
+ formdata and application icon).
+ Therefore I would suggest:
+   -put lresources into the lcl directory
+   -move LFM procedures into IDE
+   -add function FormToLCLResource(ResStream:TStream):integer; to
lresources.pp
+   -rename LazarusResources to LCLResources (Marc)

[Snipped some code]

+     try
+       BinStream.Position:=0;
+       BinaryToLazarusResourceCode(BinStream,ResStream);

BinaryToLCLResourceCode ???

Marc






More information about the Lazarus mailing list