开发者

Exist a tool to convert DFM files to sourcecode?

开发者 https://www.devze.com 2022-12-22 00:00 出处:网络
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.

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 so开发者_Python百科urcecode, so I can do this more easily. Is not problem if the sourcecode is not FPC compatible.


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.


Updating to trunk versions of both Lazarus (0.9.29) and FPC (2.5.1) might also be a solution.

Several things have changed:

  • last month sb started working on the converters (Juha)
  • FPC 2.4+ bring the resource handling closer to Delphi (no more .lrs)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号