Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-08

How to convert old *.lrs based forms to *.res

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I've come across some old Lazarus IDE add-ons, and some old project where the forms still used LResources and *.lrs files. I've managed to convert one of the forms to use the standard *.res files instead, but I tried so many things I'm not actually sure what the correct steps are. Bottom line, it was a struggle as the *.lrs kept coming back.

Is there documentation or a wiki page on converting such old projects/forms to newer resources? Or does the IDE have this ability, but I simply haven't found it.

Any help would be appreciated.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

leledumbo
to Graeme Geldenhuys
Is there documentation or a wiki page on converting such old

projects/forms to newer resources? Or does the IDE have this ability, but I simply haven't found it.

- Change resource format in the project options to FPC resources
- Change {$I *.lrs} in initialization section to {$R *.lfm}, optionally remove the initialization section if it doesn't contain any other code
- Remove LResources from uses clause
- Optionally remove existing .lrs

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-convert-old-lrs-based-forms-to-res-tp4038205p4038207.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

vfclists .
to Graeme Geldenhuys
Graeme Geldenhuys wrote 21 lines
On 2014-08-21 06:14, leledumbo wrote: > - Change resource format in the project options to FPC resources > - ...snip... Thank you, those set of instructions worked perfectly. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

There is some info about switch to .res files in this forum thread: http://forum.lazarus.freepascal.org/index.php/topic,22463.30.html . It might be of some help

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140901/437a3dd5/attachment.html>

Reply by email