Author Topic: [Solved]Selecting UIInput widget by code?  (Read 2118 times)

Gregzo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 64
    • View Profile
[Solved]Selecting UIInput widget by code?
« on: August 15, 2012, 04:02:32 AM »
Hi!

I'd like to automaticaly trigger the appearance of the onscreen keyboard (iOS) for a UIInput widget. Tried to send OnClick() and OnSelect(true) messages to it, nope...

Anyone can help?

Cheers,

Gregzo
« Last Edit: August 15, 2012, 04:35:18 AM by Gregzo »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Selecting UIInput widget by code?
« Reply #1 on: August 15, 2012, 04:13:37 AM »
It's triggered as soon as it gets focus -- UICamera.selectedObject = yourInputObject.

Gregzo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 64
    • View Profile
Re: Selecting UIInput widget by code?
« Reply #2 on: August 15, 2012, 04:34:54 AM »
Ha! That simple... Thanks,

Gregzo