- wxString msg;
- msg.Printf( _T("This is the About dialog of the wxSplashScreen sample.\n")
- _T("Welcome to %s"), wxVERSION_STRING);
+ wxBitmap bitmap;
+
+ if (m_isPda) bitmap = wxBitmap(mobile_xpm);
+
+ bool ok = m_isPda
+ ? bitmap.Ok()
+ : bitmap.LoadFile(_T("splash.png"), wxBITMAP_TYPE_PNG);
+
+ if (ok)
+ {
+ wxImage image = bitmap.ConvertToImage();
+
+ // do not scale on already small screens
+ if (!m_isPda)
+ image.Rescale( bitmap.GetWidth()/2, bitmap.GetHeight()/2 );
+
+ bitmap = wxBitmap(image);
+ wxSplashScreen *splash = new wxSplashScreen(bitmap,
+ wxSPLASH_CENTRE_ON_PARENT | wxSPLASH_NO_TIMEOUT,
+ 0, this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
+ wxSIMPLE_BORDER|wxSTAY_ON_TOP);