I’m working on my first wxRuby project.
Because the example files are on a different drive, I copied the
wxruby.png icon file to the same directory as my ruby program.
The titlebar icon and Taskbar icon (I’m on a WinXP machine) showed up
When I substitute an alternate 32x32 .png image, it doesn’t:
# Give the frame an icon. Try an alternate to the default wxruby
icon_file = File.join( File.dirname(FILE)+"/", “slate.png”)
icon_file = File.join( File.dirname(FILE)+"/", “wxruby.png”)
self.icon = Wx::Icon.new(icon_file)
When I open wxruby.png in Photoshop Elements, it seems a normal 32x32
png file with transparency. If I save slate.png in the .ico format,
WinXP does use it, but seems to shrink it to 24x24 or maybe 16x16 or
something smaller in both the toolbar and Taskbar, but shows a very
clear and crisp image in the Task Switcher (alt-Tab), which is clearly
larger than the toolbar icon. (In other words, it looks like the Task
Switcher is using it at 32x32.)
I know that icons in various sizes are needed, and the art folder in the
examples has the wxRuby image in 64x64, 128x128 and 256x256 sizes in
addition to the 32x32 .png. I’ve also read somewhere that WinXP expects
a 16x16 for the toolbar.
When people say “use .png for the icon” so that it can be used
cross-platform, there seems to be another layer of information I’m
missing. Where can I find out more about what wxRuby or wxWidgets
rsperberg at gmail