EditBox events
Posted: Thu Mar 06, 2008 13:14
I hope this is the right place to start a discussion about this
Events of the EditBox widget:
According to http://www.cegui.org.uk/wiki/index.php/EventGalore#Editbox there are no other events than the one, that is fired upon leaving the EditBox or pressing enter or tab. Now THAT is a pity.
I think it deserves more: A "charAccepted" upon each new caracter arrived (pressed) in particular. It is important to make a "mask" on the input.
Lets say I want to accept IPs only. If a character other than [0..9]+"." would arrive, I'd highlight some kinda warning. I can not do this without that event. Or am I mistaken?
Events of the EditBox widget:
According to http://www.cegui.org.uk/wiki/index.php/EventGalore#Editbox there are no other events than the one, that is fired upon leaving the EditBox or pressing enter or tab. Now THAT is a pity.
I think it deserves more: A "charAccepted" upon each new caracter arrived (pressed) in particular. It is important to make a "mask" on the input.
Lets say I want to accept IPs only. If a character other than [0..9]+"." would arrive, I'd highlight some kinda warning. I can not do this without that event. Or am I mistaken?