Title: Re: UIInput to instantly convert to uppercase
Post by: madmat3001 on December 19, 2012, 03:59:57 PM
On a related note.
Upon submitting I want the input area to go back to empty.
So in the function referred to in UIInput "Function Name" I reset the Label.text.
But the text is not reset when I hit enter, even though the function is properly executed.
I also have a submit button next to the input area that triggers the same function. When I hit the button the text is properly reset. (Though it does flash back to the lower case version for a frame or so beforehand...)
Title: Re: UIInput to instantly convert to uppercase
Post by: dlewis on December 19, 2012, 05:53:15 PM
I posted code to do this a while ago, I'll find the thread (I've been using it for months and it works perfectly).
Here is the thread I posted (http://www.tasharen.com/forum/index.php?topic=529.msg2794#msg2794). All you have to do is tick 'Force caps' in the inspector (or through code) and then all text displayed will be in upper case (Just use lbl.text as normal)