From d00029b2f2406bb123c66b7a053faee8a9d2cfa5 Mon Sep 17 00:00:00 2001 From: Bryan Petty Date: Fri, 27 Jun 2008 21:31:56 +0000 Subject: [PATCH] #9589: Documentation Corrections for textctrl.h git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/textctrl.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/interface/wx/textctrl.h b/interface/wx/textctrl.h index e72d531484..3f68fa92f3 100644 --- a/interface/wx/textctrl.h +++ b/interface/wx/textctrl.h @@ -1568,21 +1568,17 @@ public: @code using namespace std; - - wxTextCtrl *text = new wxTextCtrl(...); - - { + wxTextCtrl* text = new wxTextCtrl(...); + { wxStreamToTextRedirector redirect(text); // this goes to the text control - cout "Hello, text!" endl; - } - - // this goes somewhere else, presumably to stdout - cout "Hello, console!" endl; + cout << "Hello, text!" << endl; + } + // this goes somewhere else, presumably to stdout + cout << "Hello, console!" << endl; @endcode - @library{wxcore} @category{logging} -- 2.50.0