X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61c083e7818114734695cb26aa006098a86e62c3..a809b45d59f239fe74e3db70b92240c4b976089f:/samples/notebook/notebook.cpp diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index a7fdeea343..8f4127ef39 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -627,6 +627,12 @@ void MyFrame::OnIdle( wxIdleEvent& WXUNUSED(event) ) } } +#if USE_LOG + #define BOOKEVENT_LOG m_text->SetInsertionPointEnd(); +#else + #define BOOKEVENT_LOG +#endif + #define BOOKEVENT(OnBook,wxBookEvent,bookStr,wxEVT_PAGE_CHANGED,wxEVT_PAGE_CHANGING,s_num) \ void MyFrame::OnBook(wxBookEvent& event) \ { \ @@ -671,7 +677,7 @@ void MyFrame::OnBook(wxBookEvent& event) \ wxLogMessage(logMsg.c_str()); \ \ - m_text->SetInsertionPointEnd(); \ + BOOKEVENT_LOG \ } #if wxUSE_NOTEBOOK