]> git.saurik.com Git - wxWidgets.git/commitdiff
PocketPC adaptations
authorJulian Smart <julian@anthemion.co.uk>
Sun, 13 Mar 2005 17:32:40 +0000 (17:32 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 13 Mar 2005 17:32:40 +0000 (17:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/life/dialogs.cpp

index 7712e995a52baee4fb75601871a122d5001a106b..3999f2f0bd9e65d84de38dcc1ca11b743163b4ba 100644 (file)
 // resources
 // --------------------------------------------------------------------------
 
 // resources
 // --------------------------------------------------------------------------
 
-#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXX11__)
-    // logo for the about dialog
-    #include "bitmaps/life.xpm"
-#endif
+#include "bitmaps/life.xpm"
 
 // sample configurations
 #include "samples.inc"
 
 // sample configurations
 #include "samples.inc"
@@ -126,9 +123,14 @@ LifeSamplesDialog::LifeSamplesDialog(wxWindow *parent)
 
     // activate
     SetSizer(sizer3);
 
     // activate
     SetSizer(sizer3);
+
+#if defined(__POCKETPC__) || defined(__SMARTPHONE__)
+    Layout();
+#else
     sizer3->SetSizeHints(this);
     sizer3->Fit(this);
     Centre(wxBOTH | wxCENTRE_ON_SCREEN);
     sizer3->SetSizeHints(this);
     sizer3->Fit(this);
     Centre(wxBOTH | wxCENTRE_ON_SCREEN);
+#endif
 }
 
 LifeSamplesDialog::~LifeSamplesDialog()
 }
 
 LifeSamplesDialog::~LifeSamplesDialog()
@@ -168,10 +170,7 @@ LifeAboutDialog::LifeAboutDialog(wxWindow *parent)
                           wxDefaultPosition, wxDefaultSize)
 {
     // logo
                           wxDefaultPosition, wxDefaultSize)
 {
     // logo
-    wxBitmap bmp = wxBITMAP(life);
-#if !defined(__WXGTK__) && !defined(__WXMOTIF__) && !defined(__WXMAC__)
-    bmp.SetMask(new wxMask(bmp, *wxBLUE));
-#endif
+    wxBitmap bmp(life_xpm);
     wxStaticBitmap *sbmp = new wxStaticBitmap(this, wxID_ANY, bmp);
 
     // layout components
     wxStaticBitmap *sbmp = new wxStaticBitmap(this, wxID_ANY, bmp);
 
     // layout components
@@ -193,9 +192,14 @@ XLife is (c) 1989 by Jon Bennett et al.")),
 
     // activate
     SetSizer(sizer);
 
     // activate
     SetSizer(sizer);
+
+#if defined(__POCKETPC__) || defined(__SMARTPHONE__)
+    Layout();
+#else
     sizer->SetSizeHints(this);
     sizer->Fit(this);
     Centre(wxBOTH | wxCENTRE_ON_SCREEN);
     sizer->SetSizeHints(this);
     sizer->Fit(this);
     Centre(wxBOTH | wxCENTRE_ON_SCREEN);
+#endif
 }
 
 
 }