X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..fac938f8fdf4d0b644e94d3f3f76c5db6aeac348:/interface/wx/textctrl.h?ds=sidebyside diff --git a/interface/wx/textctrl.h b/interface/wx/textctrl.h index c4f03743d5..3f68fa92f3 100644 --- a/interface/wx/textctrl.h +++ b/interface/wx/textctrl.h @@ -8,7 +8,6 @@ /** @class wxTextAttr - @wxheader{textctrl.h} wxTextAttr represents the character and paragraph attributes, or style, for a range of text in a wxTextCtrl or wxRichTextCtrl. @@ -648,7 +647,6 @@ enum wxTextCtrlHitTestResult /** @class wxTextCtrl - @wxheader{textctrl.h} A text control allows text to be displayed and edited. @@ -1556,7 +1554,6 @@ public: /** @class wxStreamToTextRedirector - @wxheader{textctrl.h} This class can be used to (temporarily) redirect all output sent to a C++ ostream object to a wxTextCtrl instead. @@ -1571,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}