PocketPC adaptations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,10 +40,7 @@
|
|||||||
// resources
|
// resources
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXX11__)
|
#include "bitmaps/life.xpm"
|
||||||
// logo for the about dialog
|
|
||||||
#include "bitmaps/life.xpm"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// sample configurations
|
// sample configurations
|
||||||
#include "samples.inc"
|
#include "samples.inc"
|
||||||
@@ -126,9 +123,14 @@ LifeSamplesDialog::LifeSamplesDialog(wxWindow *parent)
|
|||||||
|
|
||||||
// activate
|
// activate
|
||||||
SetSizer(sizer3);
|
SetSizer(sizer3);
|
||||||
|
|
||||||
|
#if defined(__POCKETPC__) || defined(__SMARTPHONE__)
|
||||||
|
Layout();
|
||||||
|
#else
|
||||||
sizer3->SetSizeHints(this);
|
sizer3->SetSizeHints(this);
|
||||||
sizer3->Fit(this);
|
sizer3->Fit(this);
|
||||||
Centre(wxBOTH | wxCENTRE_ON_SCREEN);
|
Centre(wxBOTH | wxCENTRE_ON_SCREEN);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
LifeSamplesDialog::~LifeSamplesDialog()
|
LifeSamplesDialog::~LifeSamplesDialog()
|
||||||
@@ -168,10 +170,7 @@ LifeAboutDialog::LifeAboutDialog(wxWindow *parent)
|
|||||||
wxDefaultPosition, wxDefaultSize)
|
wxDefaultPosition, wxDefaultSize)
|
||||||
{
|
{
|
||||||
// logo
|
// logo
|
||||||
wxBitmap bmp = wxBITMAP(life);
|
wxBitmap bmp(life_xpm);
|
||||||
#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, bmp);
|
||||||
|
|
||||||
// layout components
|
// layout components
|
||||||
@@ -193,9 +192,14 @@ XLife is (c) 1989 by Jon Bennett et al.")),
|
|||||||
|
|
||||||
// activate
|
// activate
|
||||||
SetSizer(sizer);
|
SetSizer(sizer);
|
||||||
|
|
||||||
|
#if defined(__POCKETPC__) || defined(__SMARTPHONE__)
|
||||||
|
Layout();
|
||||||
|
#else
|
||||||
sizer->SetSizeHints(this);
|
sizer->SetSizeHints(this);
|
||||||
sizer->Fit(this);
|
sizer->Fit(this);
|
||||||
Centre(wxBOTH | wxCENTRE_ON_SCREEN);
|
Centre(wxBOTH | wxCENTRE_ON_SCREEN);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user