Displaying 1 result from an estimated 1 matches for "splash_timeout".
Did you mean:
wxsplash_timeout
2007 Dec 27
1
Wx::SplashScreen, and events
...ve 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 "main app!"
elsif path == PATH_SETUP
print "setup!"
end
self.destroy()
end
end
==========================...