jchua
asked on
adding icons to a .res file
how can I add a .ICO file to my .RES file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Adjusted points to 80
ASKER
how do i create a .rc file?
For simple stuff like puttin an icon in a res file just use a text editor and do this:
1 ICON MyIcon.ico
Then save it and follow the steps I outlined above...
Also look at simonets sample project - it quite good, though it is oriented towards resource DLLs, it will show you some useful information.
Cheers,
Raymond.
1 ICON MyIcon.ico
Then save it and follow the steps I outlined above...
Also look at simonets sample project - it quite good, though it is oriented towards resource DLLs, it will show you some useful information.
Cheers,
Raymond.
ASKER
Adjusted points to 90
ASKER
I was able to create MyRes.RES file but when i opened it in the image editor of Delphi I could not view or edit the icon i added.
ASKER
I was able to create MyRes.RES file but when i opened it in the image editor of Delphi I could not view or edit the icon i added.
ASKER
I was able to create MyRes.RES file but when i opened it in the image editor of Delphi I could not view or edit the icon i added.
ASKER
Adjusted points to 140
ASKER
Last question, hopefully, can i add an existing .ico file to my existing .res file using any of the methods mentioned?
ex. using d resource workshop?
ex. using d resource workshop?
Did bcc32 report any errors when it compileed the .res file?
Hi,
adding new icon to res file with Delphi Image Editor:
1.Open res file.
2.Expand 'Contents-Icon'.
3.Right click on Icon and select New-Icon from the popup menu.
4.Select the size and colors you want and press OK.
5.From main menu select File-Open and open your existing ico file.
6.From main menu select Edit-SelectAll and then Edit-Copy.
7.Close ico file.
8.Right click on new icon from res file and select edit from popup menu.
9.From main menu select Edit-Paste.
Regards, Geo
adding new icon to res file with Delphi Image Editor:
1.Open res file.
2.Expand 'Contents-Icon'.
3.Right click on Icon and select New-Icon from the popup menu.
4.Select the size and colors you want and press OK.
5.From main menu select File-Open and open your existing ico file.
6.From main menu select Edit-SelectAll and then Edit-Copy.
7.Close ico file.
8.Right click on new icon from res file and select edit from popup menu.
9.From main menu select Edit-Paste.
Regards, Geo
ASKER
Adjusted points to 160
ASKER
No rwilson, the brcc32 did not report any errors.
when i opened the .res file, the icon is present but i cant edit it or even view it...
can i add icons in my res file without erasing the old icons in the res file?
when i opened the .res file, the icon is present but i cant edit it or even view it...
can i add icons in my res file without erasing the old icons in the res file?
You should be able to add items to the res file using the image editor:
Right-click on the contents item in the tree view, select new and a popup will appear asking you to choose the type of resource to add...
Cheers,
Raymond.
Right-click on the contents item in the tree view, select new and a popup will appear asking you to choose the type of resource to add...
Cheers,
Raymond.
ASKER
Adjusted points to 170
ASKER
Yes raymond, but i have to cut and paste the image in the image editor in order to add it... what i am asking is how can i add an existing .ico file to my .res file???
example :
add myface.ico to myres.res
how do i do this?
can i use the image editor for this??
example :
add myface.ico to myres.res
how do i do this?
can i use the image editor for this??
No, I don't believe you can. But then cutting and pasting isn't that bad unless you have LOTS of them!
Cheers,
Raymond.
Cheers,
Raymond.
and go to the How-To Projects page. There you'll find a couple demo applications (w/ source) that will teach how to deal with resources.
Alex