X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371ee4026efaed733fb2d65cda10aa72745b4f9f..cb69afe081994cc75654d5813981172fa194f86f:/samples/richedit/wxLayout.cpp diff --git a/samples/richedit/wxLayout.cpp b/samples/richedit/wxLayout.cpp index d650aea0ae..a37c580265 100644 --- a/samples/richedit/wxLayout.cpp +++ b/samples/richedit/wxLayout.cpp @@ -11,7 +11,7 @@ #pragma implementation "wxLayout.h" #endif -#include +#include "wx/wxprec.h" #ifdef __BORLANDC__ # pragma hdrstop #endif @@ -171,7 +171,11 @@ MyFrame::AddSampleText(wxLayoutList *llist) llist->Insert("The quick brown fox jumps over the lazy dog."); llist->LineBreak(); llist->Insert("Hello "); +#if wxICON_IS_BITMAP llist->Insert(new wxLayoutObjectIcon(new wxICON(Micon))); +#else + llist->Insert(new wxLayoutObjectIcon(new wxBitmap (wxICON(Micon)))); +#endif llist->SetFontWeight(wxBOLD); llist->Insert("World! "); llist->SetFontWeight(wxNORMAL); @@ -465,7 +469,7 @@ void MyFrame::OnPageSetup(wxCommandEvent& WXUNUSED(event)) #endif wxPageSetupData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPageSetupDialog pageSetupDialog(this, & data); #else wxGenericPageSetupDialog pageSetupDialog(this, & data); @@ -481,7 +485,7 @@ void MyFrame::OnPrintSetupPS(wxCommandEvent& WXUNUSED(event)) wxPrintData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPrintDialog printerDialog(this, & data); #else wxGenericPrintDialog printerDialog(this, & data); @@ -494,7 +498,7 @@ void MyFrame::OnPageSetupPS(wxCommandEvent& WXUNUSED(event)) wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT); wxPageSetupData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPageSetupDialog pageSetupDialog(this, & data); #else wxGenericPageSetupDialog pageSetupDialog(this, & data);