Forum > General
How to edit .lrs file?
(1/1)
lijinjie:
Is there a function I can easly add new icons into an exisited . lrs file?
Handoko:
You should not edit the lrs file directly. But try this:
Lazarus main menu > Project Options > left panel: Project Options > Resources
There you can add and remove the resources.
These are the documentations:
https://wiki.freepascal.org/Lazarus_Resources
https://www.freepascal.org/docs-html/rtl/classes/tresourcestream.html
In the section "File handling" in the link below has a demo how to use it:
https://wiki.freepascal.org/Portal:HowTo_Demos
lijinjie:
--- Quote from: Handoko on April 22, 2021, 05:39:15 am ---You should not edit the lrs file directly. But try this:
Lazarus main menu > Project Options > left panel: Project Options > Resources
There you can add and remove the resources.
These are the documentations:
https://wiki.freepascal.org/Lazarus_Resources
https://www.freepascal.org/docs-html/rtl/classes/tresourcestream.html
In the section "File handling" in the link below has a demo how to use it:
https://wiki.freepascal.org/Portal:HowTo_Demos
--- End quote ---
Thank you so much Handoko! it's really helpful. I wanted to use it for my own wigets.
Navigation
[0] Message Index