Hello all,
I have another strange issue.
I want to decorate the main window (frame) of my application with an
icon.
I have the icon in xpm format. With the following code:
# Icon stuff!!!
icon_file = File.join(File.dirname(__FILE__), 'circadian.xpm')
icon = Wx::Icon.new(icon_file, Wx::BITMAP_TYPE_XPM)
set_icon(icon)
Things seem to run okay but I don't get an icon. If I use the same icon
file for a TaskBarIcon it works perfectly.
I don't get any errors but I don't get an icon either. Any suggestions?
This appeared to be how it was being set in the big demo.
-Glen
--
"Hey brother Christian with your high and mighty errand, Your actions
speak
so loud, I can't hear a word you're saying."
-Greg Graffin (Bad Religion)
on 30.07.2008 21:57
on 31.07.2008 00:16
Glen Holcomb wrote: > > I don't get any errors but I don't get an icon either. Any > suggestions? This appeared to be how it was being set in the big demo. Your code looks fine. I'd check whether the icon is the right size for the OS (you don't say which). Windows XP expects 16x16 for the task bar & title bar corner icon, and 32x32 for the ALT-TAB task-list pane. Use IconBundle to get both. There are some sample icons in bigdemo.rb sample - do these icon files work? If so, it may be some other problem with your .xpm file; you could try using PNG as a cross-platform alternative. cheers alex
on 01.08.2008 00:02
On Wed, Jul 30, 2008 at 4:14 PM, Alex Fenton <alex@pressure.to> wrote: >> Things seem to run okay but I don't get an icon. If I use the same icon > There are some sample icons in bigdemo.rb sample - do these icon files > work? If so, it may be some other problem with your .xpm file; you could try > using PNG as a cross-platform alternative. > > cheers > alex > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > Thanks Alex, I was on Windows and using PNGs fixed my problem. I had assumed incorrectly that since the xpm worked for the taskbar it would work with the rest of the app. -Glen -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion)