search for: splash_bitmap

Displaying 1 result from an estimated 1 matches for "splash_bitmap".

2007 Dec 27
1
Wx::SplashScreen, and events
I have the following code: #time = 7000 class TimeSplash < Wx::SplashScreen PATH_MAIN = 1 PATH_SETUP = 0 def initialize(time, path=PATH_MAIN) splash_bitmap = Wx::Bitmap.new(''timefly.png'', Wx::BITMAP_TYPE_PNG) super(splash_bitmap, Wx::SPLASH_CENTRE_ON_SCREEN|Wx::SPLASH_TIMEOUT, time, nil, -1) evt_close() {|evt| on_close_window(evt, path)} end def on_close_window(evt, path) if path == PATH_MAIN print &quot...