* * *

Author Topic: DFM required?  (Read 552 times)

Degibbo

  • New member
  • *
  • Posts: 23
DFM required?
« on: July 25, 2017, 10:07:03 am »
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

  • Hero Member
  • *****
  • Posts: 4617
Re: DFM required?
« Reply #1 on: July 25, 2017, 10:13:57 am »
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.....
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

wp

  • Hero Member
  • *****
  • Posts: 3889
Re: DFM required?
« Reply #2 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.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Thaddy

  • Hero Member
  • *****
  • Posts: 4617
Re: DFM required?
« Reply #3 on: July 25, 2017, 10:23:06 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.
UNLESS you choose to use the dfm anyway. As I explained.
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

Degibbo

  • New member
  • *
  • Posts: 23
Re: DFM required?
« Reply #4 on: July 26, 2017, 08:35:23 am »
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.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus