X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..e25cd7750c571191ce69438de5f7c0293d1b5270:/interface/wx/textctrl.h diff --git a/interface/wx/textctrl.h b/interface/wx/textctrl.h index e72d531484..568edff930 100644 --- a/interface/wx/textctrl.h +++ b/interface/wx/textctrl.h @@ -1435,6 +1435,9 @@ public: If both parameters are equal to -1 all text in the control is selected. + Notice that the insertion point will be moved to @a from by this + function. + @param from The first position. @param to @@ -1568,21 +1571,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}