DesktopTextControl
From Xojo Documentation
The base class for DesktopTextField and DesktopTextArea.
Properties | |||||||||||||||||||||||||||||||||||||||||||||
|
Methods | |||||||||||||||
|
Notes
DesktopTextControl is the base class for both DesktopTextArea and DesktopTextField. DesktopTextControl is an abstract class and it is not intended for instantiation. Use DesktopTextArea for multiline and styled controls and DesktopTextField for single line text fields.
Execution order of MenuHandlers
The intrinsic control menu handlers (such as DesktopTextField.SelectAll) are handled after any user-defined menu handlers on the TextField subclass (if it was subclassed). This means that if you have a SelectAll handler on the Window of the DesktopTextField, it will no longer be called when the DesktopTextField has focus, because the DesktopTextField will now handle it first. In this situation, create a DesktopTextField subclass that defines its own SelectAll handler, and handle the desired behavior there.
Masks
Use the ValidationMask property to filter user input on a character-by-character basis and add formatting characters. For example, a mask for a Telephone number field can add parentheses, spaces, and dashes as literals, that are used for formatting, and the digit mask symbol '#' to restrict entry to numbers only. See ValidationMask for details.
See Also
DesktopUIControl, DesktopTextArea, DesktopTextField classes.