X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f5d8ecf3495bae0ec5da208525d209a42a7c256..619996567a61c7b9df0694063f7ac2200166ae1b:/samples/dialogs/dialogs.h diff --git a/samples/dialogs/dialogs.h b/samples/dialogs/dialogs.h index 7629330a83..79e8c49d69 100644 --- a/samples/dialogs/dialogs.h +++ b/samples/dialogs/dialogs.h @@ -78,13 +78,21 @@ of MSW, MAC and OS2 // Turn USE_MODAL_PRESENTATION to 0 if there is any reason for not presenting difference // between modal and modeless dialogs (ie. not implemented it in your port yet) -#if defined(__SMARTPHONE__) +#if defined(__SMARTPHONE__) || !wxUSE_BOOKCTRL #define USE_MODAL_PRESENTATION 0 #else #define USE_MODAL_PRESENTATION 1 #endif +// Turn USE_SETTINGS_DIALOG to 0 if supported +#if wxUSE_BOOKCTRL + #define USE_SETTINGS_DIALOG 1 +#else + #define USE_SETTINGS_DIALOG 0 +#endif + + // Define a new application type class MyApp: public wxApp { @@ -128,6 +136,7 @@ private: #endif // USE_MODAL_PRESENTATION +#if USE_SETTINGS_DIALOG // Property sheet dialog class SettingsDialog: public wxPropertySheetDialog { @@ -154,6 +163,8 @@ protected: DECLARE_EVENT_TABLE() }; +#endif // USE_SETTINGS_DIALOG + // Define a new frame type class MyFrame: public wxFrame {