/**
@class wxTextAttr
- @wxheader{textctrl.h}
wxTextAttr represents the character and paragraph attributes, or style,
for a range of text in a wxTextCtrl or wxRichTextCtrl.
/**
@class wxTextCtrl
- @wxheader{textctrl.h}
A text control allows text to be displayed and edited.
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
/**
@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.
@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}