Difference between revisions of "lazres"

From Free Pascal wiki
Jump to navigationJump to search
Line 11: Line 11:
 
  lazres MYRES.RES MyPng1.png=TIMG1 MyPng2.png=TIMG1
 
  lazres MYRES.RES MyPng1.png=TIMG1 MyPng2.png=TIMG1
  
A resource can be of type:
+
A resource file can be of type:
* <tt>.RC</tt>
+
{| class="wikitable"
* <tt>.RES</tt>
+
|-
* <tt>.LRS</tt>
+
|<tt>.RC</tt> || resource description file || plaintext ||
 +
|-
 +
|<tt>.LRS</tt> || lazarus (pascal) resource  ||  plaintext || default
 +
|-
 +
|<tt>.RES</tt> || compiled resource || binary ||
 +
|}
  
 
[[Category:Tools]]
 
[[Category:Tools]]

Revision as of 16:55, 11 May 2015

Warning-icon.png

Warning: The current development (trunk) version of Lazarus has switched to .res format instead of .lrs; see Lazarus_1.4.0_release_notes

lazres is a lazarus resource tool to create and convert .rc, .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 file can be of type:

.RC resource description file plaintext
.LRS lazarus (pascal) resource plaintext default
.RES compiled resource binary