[wxruby-users] Icon issues

Glen Holcomb damnbigman at gmail.com
Wed Jul 30 15:56:10 EDT 2008


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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080730/8f1da240/attachment-0001.html>


More information about the wxruby-users mailing list