Forum > Designer

DFM required?

(1/1)

Degibbo:
G'day all,
OK, I have an ex Delphi form (with the DFM converted to LFM) that
shows OK (I can toggle with F12 between the form and the PAS file)
but the compiler is complaining that it can't find the DFM file!
Why is it even looking and how do I address this?

Cheers & thanks,
DG

Thaddy:
If you import a delphi project in lazarus there is an option that says keep/use original dfm AFAIK.
Also: always mention the Lazarus version you are using and always mention the FPC version you are using.....

wp:
In the unit belonging to the Delphi form you'll find the directive {$R *.dfm} . Change this to {$R *.lfm} in order to use the converted Lazarus form.

Thaddy:

--- Quote from: wp on July 25, 2017, 10:20:07 am ---In the unit belonging to the Delphi form you'll find the directive {$R *.dfm} . Change this to {$R *.lfm} in order to use the converted Lazarus form.

--- End quote ---
UNLESS you choose to use the dfm anyway. As I explained.

Degibbo:
Thanks WP, the {$R *.dfm} compiler directive was down at the implementation part
& changing that fixed that particular problem!

For Thaddy:
Version 1.6.4
FPC (what ever that is) 3.0.2

Thanks to all for the help.

Navigation

[0] Message Index

Go to full version