windows simulator text input

Hi there,

brought a friend to work with corona.

he use windows instead like me osx

our problem is, when i shared code with him, including a textview

he cant click into it and enter text. its like gray out?!

On my Osx simulator it works just fine, i click in the textview and can enter text.

we both use Corona Build 2534 (have to use because of an AdNetwork thats only working there)

any idea what to do with the corona simulator on windows to accept the text input?

thanks

chris

Chris,

They don’t work in the Windows Simulator (Native text fields are only available in device builds, the Xcode iOS Simulator, and in the OS X Corona Simulator.)  

I solve this obstacle by using ‘key’ events and an simulated android device (choose an android device in simulator view): http://docs.coronalabs.com/daily/api/event/key/index.html

In short, for the Windows simulator, I fake a keyboard with ‘key’ events.  This may be more work than you want to deal with, but it works fine.  Also be aware, you can make custom simulator device files that match iOS resolutions, but think they are simulating ‘android’ devices.  This will give you keyboard input while you have iOS resolution.  

-Ed

thank u … i found something here that may help

https://github.com/ProGM/CoronaSDK-win-native

based on a discussion here:

http://forums.coronalabs.com/topic/33606-still-no-native-textfield-for-windows/

… will see if it works

Sure thing.  Just remember, run the app in a simulated Android device.  This solution you posted a link to also uses the ‘key’ event which ONLY works when using Android devices via the Windows version of the Corona Simulator.

Note: This ‘key’ event in Android devices limitation doesn’t exist on OS X.  All simulated devices on OS X receive key inputs.

thx :slight_smile:

 

Chris,

They don’t work in the Windows Simulator (Native text fields are only available in device builds, the Xcode iOS Simulator, and in the OS X Corona Simulator.)  

I solve this obstacle by using ‘key’ events and an simulated android device (choose an android device in simulator view): http://docs.coronalabs.com/daily/api/event/key/index.html

In short, for the Windows simulator, I fake a keyboard with ‘key’ events.  This may be more work than you want to deal with, but it works fine.  Also be aware, you can make custom simulator device files that match iOS resolutions, but think they are simulating ‘android’ devices.  This will give you keyboard input while you have iOS resolution.  

-Ed

thank u … i found something here that may help

https://github.com/ProGM/CoronaSDK-win-native

based on a discussion here:

http://forums.coronalabs.com/topic/33606-still-no-native-textfield-for-windows/

… will see if it works

Sure thing.  Just remember, run the app in a simulated Android device.  This solution you posted a link to also uses the ‘key’ event which ONLY works when using Android devices via the Windows version of the Corona Simulator.

Note: This ‘key’ event in Android devices limitation doesn’t exist on OS X.  All simulated devices on OS X receive key inputs.

thx :slight_smile: