Jump to content


Photo

Extra large Icons in Vista


  • Please log in to reply
2 replies to this topic

#1 lmcbmai

lmcbmai
  • Members
  • 21 posts
  • Gender:Male
  • Location:Montreal, QC, Canada
  • Interests:Software design, F1 auto racing

Posted 09 October 2008 - 12:09 AM

Hi,
Has anyone implemented Vista's extra large icon support into an application written on Delphi? Could you tell how to make it work and/or paste the code snippet.

Thanks.

#2 lmcbmai

lmcbmai
  • Members
  • 21 posts
  • Gender:Male
  • Location:Montreal, QC, Canada
  • Interests:Software design, F1 auto racing

Posted 09 October 2008 - 09:59 AM

I found very simple solution. It works with Delphi 2009; not sure about earlier versions.

1) Create .ico file with the following sizes of your application icon: 16x16, 32x32, 48x48 and 256x256 pixels. Optionally, each icon size can be presented in different color modes: 32 bit, 24 bit, 8 bit or even 16 colors. You can use freeware icon editor IcoFX from http://icofx.ro to create icon files.

2) Add .ico file to the project, press <Shift-F11> in IDE. Project Manager will show new folder called Icons and your icon will be inside.

3) Add the same icon to Project Options / Application Settings by pressing "Load Icon" button.

4) Build you application.

Open the folder with project's executable in Vista file explorer and try all views from Tiles to Extra Large Icons. Application icon should appear in all sizes listed above.

The most confusing part in finding this solution was caused by the fact that Vista caches all application icons and if you modify or replace the icon, you won't see the result until you clear the cache. Check http://www.vistax64....he-rebuild.html to learn how to clear cached icons. The 2nd suggested method is more convenient as it does not require reboot.

Thanks.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 09 October 2008 - 04:42 PM

Thank you Imcbmai,

I hope that someone will find this guides very usefull.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users