// 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"
// activate
SetSizer(sizer3);
+
+#if !defined(__POCKETPC__) && !defined(__SMARTPHONE__)
sizer3->SetSizeHints(this);
sizer3->Fit(this);
Centre(wxBOTH | wxCENTRE_ON_SCREEN);
+#endif
}
LifeSamplesDialog::~LifeSamplesDialog()
wxDefaultPosition, wxDefaultSize)
{
// logo
- wxBitmap bmp = wxBITMAP(life);
-#if !defined(__WXGTK__) && !defined(__WXMOTIF__) && !defined(__WXMAC__)
- bmp.SetMask(new wxMask(bmp, *wxBLUE));
-#endif
- wxStaticBitmap *sbmp = new wxStaticBitmap(this, wxID_ANY, bmp);
+ wxStaticBitmap *sbmp = new wxStaticBitmap(this, wxID_ANY, wxBitmap(life_xpm));
// layout components
wxBoxSizer *sizer = new wxBoxSizer( wxVERTICAL );
#if wxUSE_STATLINE
sizer->Add( new wxStaticLine(this, wxID_ANY), 0, wxGROW | wxLEFT | wxRIGHT, 5 );
#endif // wxUSE_STATLINE
+
+#if ! (defined(__SMARTPHONE__) || defined(__POCKETPC__))
sizer->Add( CreateButtonSizer(wxOK), 0, wxCENTRE | wxALL, 10 );
+#endif
// activate
SetSizer(sizer);
+
+#if ! (defined(__SMARTPHONE__) || defined(__POCKETPC__))
sizer->SetSizeHints(this);
sizer->Fit(this);
Centre(wxBOTH | wxCENTRE_ON_SCREEN);
+#endif
}