wxSplashScreen text Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
spectrum
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Sat Jul 21, 2007 12:17 pm

wxSplashScreen text

Post by spectrum » Wed Jun 17, 2009 2:07 pm

hi all,

i am looking for some help to get working what i think should be intended as a very common problem:
In a splash screen, often, the version string for the software version need to be showed.

So i tried a wxStaticText, but i cannot get the trasparent background, so i tried to connect OnPaint, to use DrawText, but this seems is not getting connected.

Any help is really appreciated.
spectrum
spectrum

User avatar
doublemax
Moderator
Moderator
Posts: 15262
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax » Wed Jun 17, 2009 2:19 pm

i just draw the text onto the bitmap before i create the splash screen with it.
Use the source, Luke!

spectrum
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Sat Jul 21, 2007 12:17 pm

Post by spectrum » Thu Jun 18, 2009 6:29 am

many thanks !
spectrum

ET3D
Knows some wx things
Knows some wx things
Posts: 32
Joined: Wed Nov 09, 2011 7:09 am

Re: wxSplashScreen text

Post by ET3D » Sun Nov 04, 2012 2:09 pm

Having struggled with this issue, I found out that using "wxPaintDC pdc(GetSplashWindow());" (instead of passing 'this') in OnPaint works well.

Post Reply