Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exist a tool to convert DFM files to sourcecode?

I'm porting a app to FreePasal/Lazarus & found that their form converter is not good. I have a small utility app, and each time I do a change I need to reconvert, relayout and reimport graphics. Plus, some things are messed up.

I wonder if exist a automatic tool for convert the DFM files to delphi sourcecode, so I can do this more easily. Is not problem if the sourcecode is not FPC compatible.

like image 670
mamcx Avatar asked Dec 13 '22 23:12

mamcx


1 Answers

The free GExperts plug-in has a "components to code" feature. Install it in your Delphi IDE and open the form you wish to convert. Select the components and invoke the command, and it will place equivalent creation and initialization code on the clipboard for you to paste wherever you need it.

like image 60
Rob Kennedy Avatar answered Dec 15 '22 13:12

Rob Kennedy