Author Topic: Problem with UIText input in 3.x versions  (Read 4952 times)

TommyT31

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Problem with UIText input in 3.x versions
« on: January 20, 2014, 10:43:25 PM »
Hi I'm going through upgrading my project to the latest 3.x version. When converting over my input fields i noticed you now can click and highlight all the text which is nice, When you hit a key it clears the text but doesn't input the first key you pressed. So as I go to type over the selected text the input box goes from the second character on. Can this be tweaked to add the first character to make this more like a real text box?

Thanks in advance,
T.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with UIText input in 3.x versions
« Reply #1 on: January 21, 2014, 12:50:14 AM »
Second character on? I'm not sure what you mean. If I open the Tutorial 9 - Input, type something, click somewhere to lose focus, select the input field again and hit any key, it will replace the text with that key. Are you seeing something else?

TommyT31

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: Problem with UIText input in 3.x versions
« Reply #2 on: January 21, 2014, 06:31:13 PM »
Yes for instance the first time I click inside the input it selects all the text I have in there via the widget properties in the inspector, I then start typing the word say "ArenMook" , the A key will clear the field but not show up and I'm left with "renMook"


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem with UIText input in 3.x versions
« Reply #3 on: January 22, 2014, 02:14:49 AM »
That's news to me, and certainly not how it works here:

http://www.tasharen.com/ngui/example12.html