Quick question: I'd like to have a particular icon for the upper-
lefthand corner of my program's top-level window and then roughly the
same one (but larger and more detailed) for the display seen when one
"alt-tabs" through the various running programs. So far I've found
that if I use a small icon (16x16) with MyTopLevelWindow.SetIcon(), it
shows up directly in the upper-lefthand corner but alt-tab shows a
scaled up/smoothed version which doesn't look that great. On the
other hand, if I use a 64x64 image, the alt-tab display looks good,
but the upper-lefthand corner icons is just some mashed-up, scaled-
down version of it that doesn't look very attractive either.
Is there a way to specify these two icons separately? Or am I
deficient in my understanding of how I should be approaching the
problem of having both a good-looking upper-lefthand corner icon as
well as a good-looking alt-tab icon?
Quick question: I'd like to have a particular icon for the upper-
lefthand corner of my program's top-level window and then roughly the
same one (but larger and more detailed) for the display seen when one
"alt-tabs" through the various running programs. So far I've found
that if I use a small icon (16x16) with MyTopLevelWindow.SetIcon(), it
shows up directly in the upper-lefthand corner but alt-tab shows a
scaled up/smoothed version which doesn't look that great. On the
other hand, if I use a 64x64 image, the alt-tab display looks good,
but the upper-lefthand corner icons is just some mashed-up, scaled-
down version of it that doesn't look very attractive either.
Is there a way to specify these two icons separately? Or am I
deficient in my understanding of how I should be approaching the
problem of having both a good-looking upper-lefthand corner icon as
well as a good-looking alt-tab icon?
What OS are you on?
If windows you will need to create a .ico file that can contain a
number of different sizes of the icon in it. The os will then grab the
most appropriate one to use.
On OSX you will need to create an .icns file (see the icns designer in
the developer tools).
Then use wx.Icon to load the file and set as your application icon.
Cody
···
On Mon, May 17, 2010 at 3:03 PM, Joel Koltner <zapwire-groups@yahoo.com> wrote:
Hi,
I am not sure, whether there are more sophisticated ways of doing
this, but wx.IconBundle and frm.SetIcons seems to work ok wor me (on
windows and linux). If multiple icons in several dimensions are
present, the os should choose the appropriate for the given context, I
believe.
Either you can use a specialised converter (liek IcoFX and probably
others) to create a single multipage icon file and simply use
2010/5/17 Joel Koltner <zapwire-groups@yahoo.com>:
Quick question: I'd like to have a particular icon for the upper-
lefthand corner of my program's top-level window and then roughly the
same one (but larger and more detailed) for the display seen when one
"alt-tabs" through the various running programs.
...
Is there a way to specify these two icons separately? Or am I
deficient in my understanding of how I should be approaching the
problem of having both a good-looking upper-lefthand corner icon as
well as a good-looking alt-tab icon?
Thanks Cody... the program I'm writing I expect to run under Windows
and Linux. At the moment I'm using .XPM files since I read somewhere
that, unlike .ICO files, they work on all platforms. (And so far this
has been the case -- both Windows and Linux pick up the icon I set
using SetIcon on an .XPM file.)
Thanks VBR, that looks like exactly what I needed!
It seems as though the "suggested" icon sizes for winder corners is
16x16 and that for alt-tab images is 64x64... I'll try those two sizes
and see how things look.