Valid Characters in Edit boxes

samaursa

11-10-2010 03:22:50

Any chance there is a way to add valid characters for edit boxes in MyGUI? For example, in some boxes I want the user to be able to use alphabets only, sometimes alphanumeric but without special characters etc. etc.

my.name

11-10-2010 11:32:47

eventEditTextChange
store cursor position
validate text
restore cursor position

samaursa

14-10-2010 04:56:35

Thanks, I did something similar (albeit this is much simpler) but I wondered if there the functionality was built-in. Not a big deal at all. Thanks for the solution!