Recent

Author Topic: How to edit .lrs file?  (Read 251 times)

lijinjie

  • New Member
  • *
  • Posts: 15
How to edit .lrs file?
« on: April 22, 2021, 04:53:50 am »
Is there a function I can easly add new icons into an exisited . lrs file? 

Handoko

  • Hero Member
  • *****
  • Posts: 4209
  • My goal: build my own game engine using Lazarus
Re: How to edit .lrs file?
« Reply #1 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

lijinjie

  • New Member
  • *
  • Posts: 15
Re: How to edit .lrs file?
« Reply #2 on: April 23, 2021, 07:15:59 pm »
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

Thank you so much Handoko!  it's really helpful.  I wanted to use it for my own wigets. 


 

TinyPortal © 2005-2018