Text entry

The WRTKit has two controls for text entry needs. For situations when only a single line of text is needed there's the TextField control. The TextField control supports "masked text entry", meaning that any text that is entered into the control is masked so it cannot be read. The mask is implemented so that every typed character is shown as an asterisk (*) character.

When longer or multi-line text entry is needed, the TextArea control can be used instead of the single-line TextField. The TextArea size can be defined in number of rows when the control is created. If the argument for rows is omitted a default of 3 rows will be used. Longer text can still be entered - the size refers to number of rows that are visible without scrolling. Note that TextArea controls do not support masked text entry.

Figure 1. TextField and TextArea controls

The text in TextField and TextArea controls can be retrieved and set using getter and setter methods.

Text entry controls fire "TextChanged" events when the user edits the text in the control.