[wxruby-users] WxRuby with Ruby 1.9.1 for Windows?
John Griffiths
lists at ruby-forum.com
Thu Jan 15 08:36:44 EST 2009
Thanks Alex, I got the dialog to use a background image eventually, did
this with WxRuby 1.9.9 on Windows XP and it works (doesn't on OSX, but
don't need it to).
def initialize(title)
......
evt_erase_background :on_erase_background
end
def on_erase_background(evt)
b_splash_bmp = Wx::Bitmap.new('images/background.gif',
BITMAP_TYPE_GIF)
evt.dc.draw_bitmap(b_splash_bmp, 0, 0, false)
end
--
Posted via http://www.ruby-forum.com/.
More information about the wxruby-users
mailing list