To display a lot of text, use this subwindow as the child of a wxFrame. It is capable of loading and saving files of ASCII text, and the text can be edited directly.
The following callbacks are valid for the dialog box class:
To invoke default processing, call text-window-on-char (to be implemented).
wxTextWindow clear
wxTextWindow copy
wxTextWindow cut
wxTextWindow create
wxTextWindow discard-edits
wxTextWindow get-contents
wxTextWindow load-file
wxTextWindow modified
wxTextWindow paste
wxTextWindow save-file
wxTextWindow set-editable
wxTextWindow write
bool ( clear)
Clears the contents of a text subwindow. Returns TRUE if successful, FALSE otherwise.
bool ( copy)
Copies the selected text to the clipboard.
bool ( cut)
Copies the selected text to the clipboard, then removes the selection.
void ( create)
Creates a text subwindow. The following slots may be initialized.
style is a bit list of some of the following:
wxBORDER | Use this style to draw a thin border in Windows (non-native implementation only). |
wxNATIVE_IMPL | Use this style to allow editing under Windows, albeit with a 64K limitation. |
void ( discard-edits)
Discard any edits in the text window.
string ( get-contents)
Returns the contents (up to a maximum of 1000 characters).
bool ( load-file string filename)
Load the file onto the text subwindow, returning TRUE for success, FALSE for failure.
bool ( modified)
Returns TRUE if the text has been modified, FALSE otherwise.
bool ( paste)
Pastes the text (if any) from the clipboard to the text window.
bool ( save-file string filename)
Saves the text in the subwindow to the given file, returning TRUE for success, FALSE for failure.
Bool ( set-editable bool editable)
Sets the text window to be editable or read-only.
bool ( write string text)
Writes the given string into the text window, at the current cursor point.