Since an edit control can be declared as a 'numbers only' type, it might make sense to expand it to allow only certain characters. Eg. if I want numbers that include decimals or negative, I can't choose the 'numbers only' option. Although one can add some extra code to validate the typed character, that would only occur after the character has already been entered and is visible in the control.
This new feature could work by adding an extra property to the control, like allowed_chars
, which could accept a regex syntax or something similar.
Thanks.