With a text box, you can display, enter, or edit a alphanumeric text or numeric value. Text box come in different flavors displayed in Table 1.
Numeric text boxes may allow to enter and display null values. To enter a null value in a text box that supports it, select the whole text in the input box and hit the Del key. Doing so in numeric input text boxes that do not support null values will set the value to zero. Numeric text boxes may show the unit of the number.
When receiving focus the text in a text box is either fully selected or the caret is placed at the end of the text. The decision of this behavior was done with the intended usage in mind.
Flavor |
Description |
Single line text input |
A single-line text box used to enter or edit short strings. No line breaks can be entered. |
Multi-line text input |
A multi-line text box used to enter or edit long strings. Line breaks can be entered. |
Numeric input |
A single-line text box used to enter or edit numerical values. |
Password input |
A single line text box used to enter passwords. The actual letters typed are not shown. |
Single line text output |
A single-line read-only text box used to display short strings |
Multi line text output |
A multi-line, read-only text box used to display long strings. |
Numeric text output |
A single-line text box used to display numerical values |
Table 1: The different flavors of the text box control
Key |
Meaning |
Ctrl-A |
Select all text |
Table 1: Keyboard shortcuts for radio buttons
Figure 1: Example of text boxes for alphanumeric text. Last Name is a single line text input, Description a multi line text input
Figure 2: Example of a numeric text box allowing the entry of seconds