Author Topic: Creating a Windows icon  (Read 108 times)

Offline loftcat

  • Mc. Print
  • *
  • Posts: 46
    • View Profile
    • Loftcat Software
Creating a Windows icon
« on: 2023-Jan-12 »
What's the easiest way you find to add a customised program icon to a GLBASIC project (desktop Windows)? In the past I've used things like InstallForge with mixed success (sort of works, but doesn't always apply the icon). Is there a way to add an ico file into the settings before compiling?

I'm using v16 Steam edition but have access to earlier versions.

I'm struggling to find answers on the forum threads and help file. Recommendations appreciated!

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Creating a Windows icon
« Reply #1 on: 2023-Jan-12 »
Just create an icon.png file and add it to the project folder. The Compiler will add it as a resource to your exe file.

Offline loftcat

  • Mc. Print
  • *
  • Posts: 46
    • View Profile
    • Loftcat Software
Re: Creating a Windows icon
« Reply #2 on: 2023-Jan-13 »
Thanks.. I've got this working now  8)  To get it working I created a 512x512 png graphic and saved into the project folder, overwriting the default icon.png file. In the distribute this doesn't update the file immediately on my computer. Took me a while to figure this out, but Windows seems to be caching the old icon, leading me to think this wasn't working. Copying the exe file to another folder appears to trigger the icon to update correctly.