Frame icons for different usage/resolution

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
rocrail
I live to help wx-kind
I live to help wx-kind
Posts: 179
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Frame icons for different usage/resolution

Post by rocrail » Sat Sep 28, 2019 9:14 am

Hi,


I'm using a 256x256 Icon for Windows, and includes it in the Resource file as follows:

Code: Select all

#define wxUSE_NO_MANIFEST 1
#include "wx/msw/wx.rc"
wxDEFAULT_FRAME ICON "xpm/rocrail.ico"
On the Desktop its OK, but I would like to add another Icon for the Toolbar because it cannot be nicely scaled down.
Any hints?
desktop-icon.png
Desktop
desktop-icon.png (13.72 KiB) Viewed 112 times
toolbar-icon.png
Toolbar
toolbar-icon.png (26.14 KiB) Viewed 112 times
Best regards,
Rob.

User avatar
doublemax
Moderator
Moderator
Posts: 14172
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Frame icons for different usage/resolution

Post by doublemax » Sat Sep 28, 2019 10:58 am

A Windows .ico file can contain multiple resolutions. IcoFX is a great icon editor for Windows. It used to be freeware, but it's not any longer. But if you Google for "icofx 1.6" you might be able to still find the freeware version.
Use the source, Luke!

User avatar
rocrail
I live to help wx-kind
I live to help wx-kind
Posts: 179
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Frame icons for different usage/resolution

Post by rocrail » Sat Sep 28, 2019 11:12 am

Thanks,

I will give it a try. :)
Best regards,
Rob.

Post Reply