[Overview][Classes][Index] | Reference for unit 'dfmreader' (#fcl-res)

# TDfmResourceReader

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

DFM resource reader

## Declaration

Source position: dfmreader.pp line 29

`type TDfmResourceReader = class(TAbstractResourceReader)`
`protected`
`function GetExtensions; override;`
`function GetDescription; override;`
`procedure Load(); override;`
`function CheckMagic(); override;`
`public`
`constructor Create; override;`
`destructor Destroy; override;`
`end;`

## Inheritance

`TDfmResourceReader` |  | DFM resource reader
`TAbstractResourceReader` |  | Base abstract resource reader class
`TObject`

## Description

This class isn't a proper resource reader. It provides a quick way to create a resource file from a DFM/XFM/LFM file, similar to what Delphi does with constructs like {$R *.dfm}.

This class reads a DFM, XFM or LFM file, compiles it to binary format if it isn't, and stores it in a resource of type RT_RCDATA with the name of the form specified in the DFM file.

Documentation generated on: May 14 2021