Forum > Windows

Compile resource files for a WINAPI window by means of Lazres

<< < (2/3) > >>

440bx:

--- Quote from: Pieter on August 03, 2022, 01:10:41 pm ---
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---lazres JustAResource.RES GetClientRect.rc APPICON.ICOand include the RES file in the source program, the implied resources (i.e. the menu's) do not show up.
I wonder if I did apply Lazres correctly. What could be the matter?

--- End quote ---
The problem is that the "lazres" command you showed above does NOT include the menu nor the dialog in the resource file as menu and dialog resources.

It includes the entire "GetClientRect.rc" as raw resource data.  IOW, it is not parsing and compiling that resource script.  If you want to see what it does, use ResourceHacker (nice little utility, I highly recommend it.)

I don't know exactly what Lazres is supposed to do but, it doesn't seem to be a resource compiler.

Just FYI, I use the resource compiler that was included with Delphi (BRCC32.exe)

Pieter:
@440bx:
--- Quote ---I don't know exactly what Lazres is supposed to do but, it doesn't seem to be a resource compiler.
--- End quote ---

I agree, given the error and warning messages I mentioned above it seems that windres is used by Lazarus. However, it does not work, as far as I know.
Maybe somebody else can shed some light on this issue?

@440bx:
--- Quote ---Just FYI, I use the resource compiler that was included with Delphi (BRCC32.exe)
--- End quote ---

Thanks for this information. This does work.  :D

440bx:

--- Quote from: Pieter on August 04, 2022, 05:59:59 pm ---Thanks for this information. This does work.  :D

--- End quote ---
You're welcome.

marcov:

--- Quote from: 440bx on August 03, 2022, 07:56:32 pm ---Just FYI, I use the resource compiler that was included with Delphi (BRCC32.exe)

--- End quote ---

Note that trunk has a native resource compiler (fpcres)

440bx:

--- Quote from: marcov on August 04, 2022, 10:46:35 pm ---Note that trunk has a native resource compiler (fpcres)

--- End quote ---
Yes, I remember PascalDragon mentioning that. I will eventually start using it.  I also remember he mentioned that, at least at that time, there were some resource types it couldn't handle, I believe (not sure) keyboard accelerators were among them.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version