I have a textfiled, if I set up the limit text ONLY, let’s say 10, when I input the text it will behave as I expected. I mean after input 10 characters, I couldn’t input anymore, unless I delete 1 character from the textfield.
But when I add mask to this textfield, like only allow uppercases letters. So textfield.mask = “>” and textfield.limittext = 10 at the same time. After I input 10 characters, it will stop me to input a charater at the end of string, but if I move the cursor to front position, I can still input characters and those characters will kick the last characters out of the max input limit bound. For example, “ABCDEFGHIJ”, you cannot input any characters after “J”, but you can insert "Z"before “J” at any position. So if I input “Z” before “A”, the string will become “ZABCDEFGHI”.
So my question is how can I make it behave like first senario, which you cannot input any character unless you delete one?
Open the MaskedField.rbp file with your version of Xojo, then drag the MaskedField class to your own project. It should now show up in your Controls Library.