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
@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}