Difference between revisions of "lazres"

From Free Pascal wiki
Line 9: Line 9:
 
  lazres MYRES.RES MyPng1.png=TIMG1 MyPng2.png=TIMG1
 
  lazres MYRES.RES MyPng1.png=TIMG1 MyPng2.png=TIMG1
  
 
+
A resource can be of type:
MyPng1.png ResourceName='TIMG1' Type=RT_RCDATA
+
* .RC
MyPng2.png ResourceName='TIMG2' Type=RT_RCDATA
+
* .RES
 +
* .LRS
  
 
[[Category:Tools]]
 
[[Category:Tools]]

Revision as of 16:54, 9 May 2015

lazres is a lazarus resource tool to create and convert .lrs and .res files.

Lazres can be found as <root>/lazarus/tools/lazres.lpi and needs to be compiled.

Usage: lazres resourcefilename filename1[=resname1] [filename2[=resname2] ... filenameN=resname[N]]
       lazres resourcefilename @filelist

To create a resource file MYRES.RES with two .png graphics files use:

lazres MYRES.RES MyPng1.png=TIMG1 MyPng2.png=TIMG1

A resource can be of type:

  • .RC
  • .RES
  • .LRS