Recent

Author Topic: DFM required?  (Read 3718 times)

Degibbo

  • New Member
  • *
  • Posts: 46
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: 14201
  • Probably until I exterminate Putin.
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.....
Specialize a type, not a var.

wp

  • Hero Member
  • *****
  • Posts: 11854
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.

Thaddy

  • Hero Member
  • *****
  • Posts: 14201
  • Probably until I exterminate Putin.
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.
Specialize a type, not a var.

Degibbo

  • New Member
  • *
  • Posts: 46
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.

 

TinyPortal © 2005-2018