X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8eb5f886db83d60cf42309f2f81694527b8147a..67a083dd38d1ad1df8c6a25a58bb2f0ec4f3a936:/samples/dialogs/dialogs.cpp?ds=sidebyside diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index bdb79dd3ee..7296bfa0b8 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -370,7 +370,7 @@ bool MyApp::OnInit() sheet_menu->Append(DIALOGS_PROPERTY_SHEET, _T("&Standard property sheet\tShift-Ctrl-P")); sheet_menu->Append(DIALOGS_PROPERTY_SHEET_TOOLBOOK, _T("&Toolbook sheet\tShift-Ctrl-T")); - if (wxPlatformIs(wxMac)) + if (wxPlatformIs(wxPORT_MAC)) sheet_menu->Append(DIALOGS_PROPERTY_SHEET_BUTTONTOOLBOOK, _T("Button &Toolbook sheet\tShift-Ctrl-U")); /* #ifdef __WXMAC__ @@ -432,6 +432,10 @@ MyFrame::MyFrame(wxWindow *parent, ); } #endif // wxUSE_COLOURDLG + +#if wxUSE_STATUSBAR + CreateStatusBar(); +#endif // wxUSE_STATUSBAR } #if wxUSE_COLOURDLG @@ -1460,22 +1464,13 @@ SettingsDialog::SettingsDialog(wxWindow* win, int dialogType) m_imageList = NULL; Create(win, wxID_ANY, _("Preferences"), wxDefaultPosition, wxDefaultSize, - wxDEFAULT_DIALOG_STYLE| (int)wxPlatform::IfNot(wxWinCE, resizeBorder) -/* -#ifndef __WXWINCE__ - |resizeBorder -#endif -*/ + wxDEFAULT_DIALOG_STYLE| (int)wxPlatform::IfNot(wxOS_WINDOWS_CE, resizeBorder) ); // If using a toolbook, also follow Mac style and don't create buttons if (!useToolBook) - CreateButtons(wxOK|wxCANCEL| (int)wxPlatform::IfNot(wxWinPocketPC, wxHELP) -/* -#ifndef __POCKETPC__ - |wxHELP -#endif -*/ + CreateButtons(wxOK | wxCANCEL | + (int)wxPlatform::IfNot(wxOS_WINDOWS_CE, wxHELP) ); wxBookCtrlBase* notebook = GetBookCtrl();