Forum > Linux

dfm to lfm

(1/1)

johnathan:
Hi
I have been changing my programs to Lazarus from Delphi and have run into  a problem.
Due to a disk corruption I have lost some information on a project.

The code is no problem as I can write this again,  but the form is more difficult.

I have recovered the Dfm file and a list of the components used listed under "type".

The dfm will convert to a lfm with no problems, but do I have to redesign the form again from scratch or is there a way to to generate the form from the information I have.

If you have an answer please be aware of my limited knowledge.

Thanks in hope

john

Thanks for all your replies I will attempt your suggestions and hope for success.

Regrds

John

JuhaManninen:

--- Quote from: johnathan on July 20, 2021, 04:48:10 pm ---I have recovered the Dfm file and a list of the components used listed under "type".
The dfm will convert to a lfm with no problems, but do I have to redesign the form again from scratch or is there a way to to generate the form from the information I have.

--- End quote ---
All the layout information is in the dfm file. You can rename it to lfm or use it directly.
In the Pascal file you have the components listed in the form's default (published) section. That is all you need.

marcov:
the component definitions AND the handlers/callbacks/events

JuhaManninen:

--- Quote from: marcov on July 20, 2021, 08:48:23 pm ---the component definitions AND the handlers/callbacks/events

--- End quote ---
Yes, event handlers I forgot.
Lazarus IDE can recreate a skeleton handler when you double-click its field in OI. No need to type everything again.

Navigation

[0] Message Index

Go to full version