Hi,
There is an existing topic on this, but it's a few years old so I didn't want to reply there. I'm able to dynamically update the bitmap of my splash screen similarly to how it's described in the topic. However, that seems to work only for Linux and Windows. Under OSX refresh/update doesn't cause the updated splash bitmap to get re painted. That's also what's described by the last comment that didn't get a reply.
I also did drawing tests directly to a splash window's paint DC but it doesn't do anything. Is there something about the way the splash window is created on OSX that makes it so the splash window won't update? Any suggestions on what to do or try?
viewtopic.php?t=34782
Thank you!
- Alejandro
wxSplashScreen text + OSX Topic is solved
Re: wxSplashScreen text + OSX
I don't work under OSX, so these are just wild guesses:
- try calling ::wxYield() after Refresh()
- try putting the code that uses the wxSplashScreen into wxAppConsole::OnEventLoopEnter() instead of OnInit()
- try calling ::wxYield() after Refresh()
- try putting the code that uses the wxSplashScreen into wxAppConsole::OnEventLoopEnter() instead of OnInit()
You can't use a wxPaintDC outside a paint event handler. Try wxClientDC.I also did drawing tests directly to a splash window's paint DC but it doesn't do anything.
Use the source, Luke!
Re: wxSplashScreen text + OSX
::wxYield() did it!! Thank you so much!!doublemax wrote:I don't work under OSX, so these are just wild guesses:
- try calling ::wxYield() after Refresh()
- try putting the code that uses the wxSplashScreen into wxAppConsole::OnEventLoopEnter() instead of OnInit()
You can't use a wxPaintDC outside a paint event handler. Try wxClientDC.I also did drawing tests directly to a splash window's paint DC but it doesn't do anything.
- Alejandro