[DUG] Resource compiler

Jolyon Direnko-Smith jsmith at deltics.co.nz
Mon Dec 21 17:29:55 NZDT 2015


You could use http://melander.dk/reseditor/

Or you can use any tool capable of creating/editing ICO files and simply
write a resource script (*.rc) to incorporate the icons into a *.res file
as required.  Delphi will compile the *.rc file for you though I don't
recall off-hand whether you declare it as {$R filename.rc} or {$R
filename.res} (with the IDE picking up the RC file by association with the
common stem in the filename) but I'm sure there is documentation somewhere
that will clarify on that point.

Either way tho I would use a separate, dedicated and additional resource
file rather than the one linked to the DPR filename (if you aren't already)
to avoid the IDE trampling over it.

hth

On 21 December 2015 at 17:21, John Bird <johnkbird at paradise.net.nz> wrote:

> D2007, and one of my oldest programs uses a resource file with a couple of
> icon images for the application and I want to add a couple more.
> The Old Program used to have 2 states I showed via different taskbar
> icons, now it has 4.
>
> Problem – I cannot recall how I originally edited the resource, and D2007
> does not seem to have any tools to do it.
> Resource was originally created at least 2 Delphi versions and 2-3 PCs ago
> and whatever I used I don’t have now.
> I have also D10 Seattle in case it helps...
>
> The alternative is to put the icons into an image list and use these to
> change the application icon, but I am not sure if the image list holds
> icons OK and if this works until I try it.
>
> I know later Delphi such as Seattle has snazzy tools extensions around
> Application icon and toolbar buttons etc.
>
> Any quick advice on the simplest and most painless way to do this would be
> appreciated.
>
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20151221/026a7fb9/attachment.html 


More information about the Delphi mailing list