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
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Frame icons for different usage/resolution

Post by rocrail »

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
Desktop
desktop-icon.png (13.72 KiB) Viewed 991 times
Toolbar
Toolbar
toolbar-icon.png (26.14 KiB) Viewed 991 times
Best regards,
Rob.
https://wiki.rocrail.net
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Frame icons for different usage/resolution

Post by doublemax »

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
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Frame icons for different usage/resolution

Post by rocrail »

Thanks,

I will give it a try. :)
Best regards,
Rob.
https://wiki.rocrail.net
Post Reply