Adding icons
[1/11] from: ptretter::charter::net at: 10-Nov-2003 19:21
Can anyone tell me how to add icons to REBOL.exe builds for windows platform. Also,
can we add icon sets? And do we need to include an icon for each support size before
it works?
Paul Tretter
[2/11] from: greggirwin:mindspring at: 10-Nov-2003 21:23
Hi Paul,
PT> Can anyone tell me how to add icons to REBOL.exe builds for
PT> windows platform. Also, can we add icon sets? And do we
PT> need to include an icon for each support size before it works?
Do you mean changing the icon in the EXE for encapped apps? If so, you
can do it with a tool like Axialis' IconWorkshop. I wrote a little
script to do it as well, but it's terribly crude in a couple aspects.
You can only change icons for the size and color depth that RT
includes, which means they may be ugly (only 16 colors under the old
encap, SDK includes a 256 color resource).
-- Gregg
[3/11] from: atruter:labyrinth:au at: 11-Nov-2003 15:56
> Can anyone tell me how to add icons to REBOL.exe builds for windows
> platform. Also, can we add icon sets? And do we need to include an
> icon for each support size before it works?
Download ResHacker from http://www.users.on.net/johnson/resourcehacker/
and use a line like the following in your make script:
call reduce [%/c/rebol/bin/ResHacker.exe "-addoverwrite" to-string
encap-exe "," to-string encap-exe
,c:\rebol\bin\Icons.ico,ICONGROUP,REBOL,1033
]
Your icons file must contain three 16 colour icons at 16x16, 32x32 and
48x48 resolutions. IconEdit32 is more than adequate for the task of
creating these (if you don't have an alternate yet).
Regards,
Ashley
[4/11] from: ptretter:charter at: 10-Nov-2003 23:14
[5/11] from: ptretter:charter at: 10-Nov-2003 23:16
Thanks Ashley and thanks Gregg. I have a bit more understanding now on
this. I think my problem was not using all 3 icons. Additionally, are
there any good programs for creating icon sets. I assume that these 3 icons
are part of a icon file that is a set.
Paul Tretter
[6/11] from: atruter:labyrinth:au at: 11-Nov-2003 17:56
> Additionally, are there any good programs for creating icon sets.
IconEdit32
> I assume that these 3 icons are part of a icon file that is a set.
Yep
Regards,
Ashley
[7/11] from: greggirwin:mindspring at: 11-Nov-2003 0:30
Hi Paul,
PT> Additionally, are
PT> there any good programs for creating icon sets. I assume that these 3 icons
PT> are part of a icon file that is a set.
The Axialis tool I mentioned is very nice. Before that, I used IconEdit Pro
for a long time.
-- Gregg
[8/11] from: ptretter:charter at: 13-Nov-2003 21:02
REBOL SDK says that we can use:
On Windows the REBOL encapsulators provide space in their output executable
binary files for several icons. These icon formats are supplied:
16x16 16 colors
32x32 16 colors
32x32 256 colors
48x48 256 colors
So it looks like this wont work for each one. I look at the current icons
in my SDK encaps and I get only room for 3 icons. All are as you said 16
colors. So does this mean that SDK documentation is wrong?
Paul Tretter
[9/11] from: greggirwin:mindspring at: 13-Nov-2003 23:18
Hi Paul,
PT> REBOL SDK says that we can use:
PT> 16x16 16 colors
PT> 32x32 16 colors
PT> 32x32 256 colors
PT> 48x48 256 colors
The beta SDK had all four formats, but the new release doesn't it
seems. No 32x32/256 color resource now, which is a shame. We can
create really stunning apps with REBOL, but only have 16 color icons.
:\ The workaround is to ship another icon with your app and at least
use that for shortcuts.
-- Gregg
[10/11] from: ptretter:charter at: 15-Nov-2003 12:09
Something I found out was that if you change the name of your exe after you
encapped it then changed the icons and saved it you would have the new icons
displayed correctly. However, if you change the name back to the original
name when it was encapped it will return to the standard RT icon.
Paul Tretter
[11/11] from: greggirwin:mindspring at: 15-Nov-2003 11:47
Hi Paul,
PT> Something I found out was that if you change the name of your exe after you
PT> encapped it then changed the icons and saved it you would have the new icons
PT> displayed correctly. However, if you change the name back to the original
PT> name when it was encapped it will return to the standard RT icon.
Odd. I haven't seen that one.
-- Gregg