1st question:
My app does quite a bunch of code before the top-frame is created. Do I need to redesign in order to throw up a splash screen while this work is going on, or can I create a random window whenever I want, even in the App constructor?
2nd part:
If I have an animated gif, how painful would it be to have the splash screen display this while the app is chugging on the CPU at startup?
Animated Splash Screen Topic is solved
-
- wxWorld Domination!
- Posts: 1059
- Joined: Sun Dec 30, 2007 6:40 pm
- Location: Canada
Hi John,
I think you could do either/or.
See http://docs.wxwidgets.org/stable/wx_wxsplashscreen.html for the splash screen, it shows an example at the top.
If you want to show a gif animation, you would need to construct your own window at start up and put the animation in it.
See the animation example wx/samples/animate. I suspect you would have to call wxYield() during your initialization from time to time to make the animation work.
See http://docs.wxwidgets.org/stable/wx_wxanimation.html
Hope that helps,
Jim
I think you could do either/or.
See http://docs.wxwidgets.org/stable/wx_wxsplashscreen.html for the splash screen, it shows an example at the top.
If you want to show a gif animation, you would need to construct your own window at start up and put the animation in it.
See the animation example wx/samples/animate. I suspect you would have to call wxYield() during your initialization from time to time to make the animation work.
See http://docs.wxwidgets.org/stable/wx_wxanimation.html
Hope that helps,
Jim
OS: Vista SP1, wxWidgets 2.8.7.
-
- I live to help wx-kind
- Posts: 178
- Joined: Mon Jul 23, 2007 9:01 am
Have you created an animated wxSplashscreen? I intend to do the same and do not intend to invent the wheel on my ownJimFairway wrote:Hi John,
I think you could do either/or.
See http://docs.wxwidgets.org/stable/wx_wxsplashscreen.html for the splash screen, it shows an example at the top.
If you want to show a gif animation, you would need to construct your own window at start up and put the animation in it.
See the animation example wx/samples/animate. I suspect you would have to call wxYield() during your initialization from time to time to make the animation work.
See http://docs.wxwidgets.org/stable/wx_wxanimation.html
Hope that helps,
Jim
Best regards
Orbitcowboy
OS: Ubuntu 9.04 (32/64-Bit), Debian Lenny (32-Bit)
Compiler: gcc/g++-4.3.3 , gcc/g++-4.4.0
wxWidgets: 2.8.10,2.9.0
Compiler: gcc/g++-4.3.3 , gcc/g++-4.4.0
wxWidgets: 2.8.10,2.9.0
-
- I live to help wx-kind
- Posts: 178
- Joined: Mon Jul 23, 2007 9:01 am
<!-- -->
Best regards
Orbitcowboy
Ok, thank you for your quick response.JohnD wrote:I'm afraid not, we decided on a static image using the wxSplashScreen functionality.orbitcowboy wrote:
Have you created an animated wxSplashscreen? I intend to do the same and do not intend to invent the wheel on my own
Best regards
Orbitcowboy
Best regards
Orbitcowboy
OS: Ubuntu 9.04 (32/64-Bit), Debian Lenny (32-Bit)
Compiler: gcc/g++-4.3.3 , gcc/g++-4.4.0
wxWidgets: 2.8.10,2.9.0
Compiler: gcc/g++-4.3.3 , gcc/g++-4.4.0
wxWidgets: 2.8.10,2.9.0