From: Mattia B. <mb...@ds...> - 2001-12-02 16:47:38
|
> Hi. In my Wx::App package in the OnInit sub, I create a Wx::Bitmap, > then load a Wx::SplashScreen with that bitmap. Then I create the > main frame. However, this isn't working how I anticipated. I was > thinking that the script would halt when the splah screen appears, > and wouldn't continue to run until the splash screen times out, or > someone clicks on it. This is not the case. The splash screen > appears, but then the frame opens right after it. Is there a way to > fix this? Well, I think the default behaviour is right, because I always think that a splash screen is an eyecandy to show while the app is loading; to achieve what you want you could: 1) put an explicit delay right after SplashScreen creation 2) add and EVT_CLOSE to the SplashScreen and from the OnClose function, Show() your frame Regards Mattia |