X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a67fad5e116f9da2b53de8d2ff74e273082bc41f..c545950d8cfe2d17f64dbf6c5aafb94fade9cb5d:/samples/richedit/wxLayout.cpp diff --git a/samples/richedit/wxLayout.cpp b/samples/richedit/wxLayout.cpp index 5453000787..183c9e59c6 100644 --- a/samples/richedit/wxLayout.cpp +++ b/samples/richedit/wxLayout.cpp @@ -76,9 +76,10 @@ MyFrame::MyFrame() : wxFrame( (wxFrame *) NULL, wxID_ANY, _T("wxLayout"), wxDefaultPosition, wxDefaultSize ) { +#if wxUSE_STATUSBAR CreateStatusBar( 2 ); - SetStatusText( _T("wxLayout by Karsten Ballüder.") ); +#endif // wxUSE_STATUSBAR wxMenuBar *menu_bar = new wxMenuBar(); @@ -128,7 +129,9 @@ MyFrame::MyFrame() : SetMenuBar( menu_bar ); m_lwin = new wxLayoutWindow(this); +#if wxUSE_STATUSBAR m_lwin->SetStatusBar(GetStatusBar(), 0, 1); +#endif // wxUSE_STATUSBAR m_lwin->SetMouseTracking(true); m_lwin->SetEditable(true); m_lwin->SetWrapMargin(40); @@ -180,14 +183,7 @@ void MyFrame::AddSampleText(wxLayoutList *llist) llist->LineBreak(); llist->Insert(_T("Hello ")); - wxBitmap *icon = -#if wxICON_IS_BITMAP - new wxIcon(Micon_xpm) -#else - new wxBitmap (wxIcon(Micon_xpm)) -#endif - - ; + wxBitmap *icon = new wxBitmap (wxIcon(Micon_xpm)); llist->Insert(new wxLayoutObjectIcon(icon)); llist->SetFontWeight(wxBOLD);