Desktop Text Area
From Xojo Documentation
The TextArea control is a multi-line text field, such as a text editor or word processor. In contrast to a TextField, it can contain multiple lines and styled text. A TextArea field with the Styled property set can display text in multiple fonts, styles, and sizes and have both horizontal and vertical scrollbars. Individual paragraphs can be left, centered, or right aligned via the StyledText class.
The TextArea supports the Edit menu’s Cut, Copy, and Paste menu items and keyboard shortcuts automatically. This functionality is built into the default Desktop Application project. If you rename or otherwise modify the Cut, Copy, and Paste menu items, you can disable the automatic functionality.
TextFields also have built-in support for textual drag and drop.
Refer to TextArea in Language Reference for details on all its events, properties and methods.
Below is a list of common events, properties and methods.
KeyDown - Called when a key is pressed while the Text Field has focus. The key that was typed is available as a parameter.
TextChange - Called when the text was changed, either by typing or through code (by setting the Value property).
To clear the text in a TextArea set it's Value property to the empty string: