IonicWind Software

IWBasic => General Questions => Topic started by: Junner2003 on August 07, 2007, 11:36:08 AM

Title: VISTA icon problem
Post by: Junner2003 on August 07, 2007, 11:36:08 AM
Now, VISTA is dealing with all that up to 256x256 icon size stuff whichis really neat in some aspects (icon zooming on the desktop, hyper-size icons in folders, etc. ...)! Does  anybody know of a trick how to compile them with my program?

My solution for now, is, to add a seperate ico file to the program files and link shortcuts to that one instead to the exe-icon - not really elegant, is it?
Title: Re: VISTA icon problem
Post by: Brice Manuel on August 07, 2007, 11:42:25 AM
Use resource hacker to change the icon?
Title: Re: VISTA icon problem
Post by: Junner2003 on August 07, 2007, 11:47:16 AM
Yeah,
thought of that too and tried already! In some cases some of my programs were identified as virus by AVG afterwards ... :(
Title: Re: VISTA icon problem
Post by: Brice Manuel on August 07, 2007, 11:59:09 AM
http://www.axialis.com/tutorials/tutorial-vistaicons.html

Perhaps something there will help?
Title: Re: VISTA icon problem
Post by: Junner2003 on August 07, 2007, 12:07:30 PM
I crossed that site as well already while researching my problem! :)
That seems to be a great ICON EDITOR but in te end it only creates an icon for you. While adding the icon to my EB executable my icon gets stripped down to a standard size again ...
Title: Re: VISTA icon problem
Post by: Brice Manuel on August 07, 2007, 12:08:35 PM
Are you sure you are saving the 256x256 icon as a PNG?
Title: Re: VISTA icon problem
Post by: Junner2003 on August 07, 2007, 12:15:52 PM
Yes, I am sure!
It works fine with VS2005. If I add the same icon to an application there it keeps even the supersized VISTA compatible ones. If I use the icon on an EB compiled program it has only the standard sizes ... it is not a big deal, my icons still look neat even if they do not zoom under VISTA! There are even commecial companies out there who did not get it working! As example NORTON AntiVirus! ... It just would have been nice ...  :)
Title: Re: VISTA icon problem
Post by: Brice Manuel on August 07, 2007, 12:17:42 PM
Dunno anything more to help as I don't own Vista and I refuse to officially support it.
Title: Re: VISTA icon problem
Post by: Junner2003 on August 07, 2007, 12:32:39 PM
Thanks anyway!
You were vey helpful - except that I've researched already before posting! :) So, I came accross that AXIALIS and also tried reshack ... ;)

Like I said: not a big deal! I can live without that and in case someone really wants that I can add a seperate ico file to my program ... !
Title: Re: VISTA icon problem
Post by: Ionic Wind Support Team on August 07, 2007, 12:38:05 PM
Create a project,  add the icon as a resource with and ID of 101, and that is your main programs icon. 

I don't have Vista on any of my machines so can't verify it.  And I won't have Vista on any of my machines anytime soon ;) 

Paul.
Title: Re: VISTA icon problem
Post by: Junner2003 on August 07, 2007, 12:39:48 PM
Thanks Paul!

Will try that soon and post the results here ... ! ;)
Dam, why didn't I think of that?  ::)
Title: Re: VISTA icon problem
Post by: Blue Steel on August 07, 2007, 12:42:14 PM
here are 3 links i've found on the subject

http://www.rw-designer.com/compile-vista-icon
http://www.codeproject.com/gdi/using_vista_icons.asp
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=446984&SiteID=1

hope there's something useful there

I found them by doing a google search for
Quote
how to compile vista icons in program
Title: Re: VISTA icon problem
Post by: Junner2003 on August 07, 2007, 12:51:23 PM
Thanks for the links!  :)
Looks like Microsoft fixed that problem with VS2005 SP1. At least it works on mine ...
I will try tonight to simply add the ico file as resource as Paul suggested. I think that is going to work.  ;)
Title: Re: VISTA icon problem
Post by: Junner2003 on August 09, 2007, 04:51:09 PM
ok,
Paul's suggestion did the trick! Thanks! Works like a charme now!  ;)
Title: Re: VISTA icon problem
Post by: Brice Manuel on August 09, 2007, 05:04:27 PM
Thank you for the update.