What I want is that the user can only input decimal numbers on a Text, I don't want it to allow text input as:
- HELLO
- ABC.34
- 34.HEY
- 32.3333.123
I have been trying using VerifyListener, but it only gives me the portion of the text that got inserted, so I end up having the text that I want to insert and the text before the insertion, tried also combining the text, but I got problems when you delete a key (backspace) and I end up having a String like 234[BACKSPACE]455.
Is there a way to set a Mask on a Text or successfully combine VerifyEvent with the current text to obtain the "new text" before setting it to the Text?