- static const int DEFAULT_PAGE_WIDTH = 270;
- //static const int DEFAULT_PAGE_HEIGHT = 290;
- // For compatibility with 2.4: there's too much
- // space under the bitmap, probably due to differences in
- // the sizer implementation. This makes it reasonable again.
- static const int DEFAULT_PAGE_HEIGHT = 270;
-
+ int DEFAULT_PAGE_WIDTH = 270;
+ int DEFAULT_PAGE_HEIGHT = 270;
+ bool isPda = (wxSystemSettings::GetScreenType() <= wxSYS_SCREEN_PDA);
+ if (isPda)
+ {
+ // Make the default page size small enough to fit on screen
+ DEFAULT_PAGE_WIDTH = wxSystemSettings::GetMetric(wxSYS_SCREEN_X) / 2;
+ DEFAULT_PAGE_HEIGHT = wxSystemSettings::GetMetric(wxSYS_SCREEN_Y) / 2;
+ }
+