[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'LResources' (#lcl)

# Reference for unit 'LResources'

Maintains a global list of Lazarus resources, and provides methods and types used to stream components.

`uses`
`Classes,`
`SysUtils,`
`Types,`
`RtlConsts,`
`TypInfo,`
`Variants,`
`LCLStrConsts,` |  | Contains resource strings used in the LCL.
`LazConfigStorage,`
`FPCAdds,`
`DynQueue,`
`LazUTF8,`
`LazLoggerBase,`
`LazTracer,`
`LazUtilities;`

## Overview

lresources.pp maintains and stores all standard Lazarus resources in the global LazarusResources list and provides methods and types for component streaming.

A Lazarus resource is streamed as an UTF-8 string, with a name, value and value type.

Lazarus resources are normally included via an include directive in the initialization part of a unit. To create such include files use the BinaryToLazarusResourceCode procedure.

To create an LRS file from an LFM file use the LFMtoLRSfile function which transforms the LFM text to binary format and stores it as Lazarus resource include file.

Author: Mattias Gaertner

lresources.pp is part of the Lazarus Component Library (LCL).