Native.TextField help on WINDOWS

hey!

I am having trouble using the TextField I used in my program…

I see a grey box, but I am not able to click and type inside it!

I hear something about it being unable to work on windows, and I heard that it works on the mac.

I wasn’t really sure…

I do not own a mac, but is there anyway I can can actually simulate my program COMPLETLY on windows…

ps. corona simulator  prompt me to download a JAVA program, and after that it still wouldn’t simulate completely

please tell me if there is a alternative to this or a way to resolve this issue, I really want to see what I have made :<

@slok1997  

Short answer: No.  It only works on devices and the Mac Simulator.  

Longer answer:

You can’t simulate the text field on Windows (http://docs.coronalabs.com/daily/api/type/TextField/index.html)

Your best bet is to upload it to your Android device and test it there.

omg thankyou!

okay :frowning:

umm can you only upload it to your android device or can you also work with a iphone/ ipad?

and how exactly do you “upload” it?

If you already need it, I wrote a simple implementation of the native textField for windows… It’s quite buggy, but can be useful ^^

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

thank you very much for the implementation “progiemmeh”

I tried working with it… it gives me a error on my simulator…

I don’t know if I used it correctly…

so do I just write that 4 lines of code before my actual work and then launch the simulator?

my error:

module ‘win_fix’ not found: resource (win.fix.lu) does not exist in archive[etc…]

I like what you are trying to you “progiemmeh” this is benifitial to everyone keep up with your efforts and let me know if you have worked-out anything. ThankYou

Hi,

Just download this file:

https://raw.github.com/ProGM/CoronaSDK-win-native/master/win_fix.lua

And add it to your project folder in order to make it work :wink:

I’ll add a more precise installation description.

hey progiemmeh!

man I don’t know whats happening!

I think I don’t have a proper description of what to do…

can you please explain where to exactly put that file?

I placed it in the same folder as my main.lua file, that made no difference…

I feel like i am suppose to do something else…

can you please give me a accurate description of how to actually work with this please?

  • after all i am a Newbie :0

Ok:

1 - Download the file and put it in your corona project folder (as you have actually done). Check that the filename is win_fix.lua, not win_fix.lua.txt or something else. To be sure, check that the icon of win_fix.lua is the same as the main.lua, or just right click, select properties, and check the file type (it should be the same as main.lua).

2 - Add the following at the beginning of your main.lua file:

if "Win" == system.getInfo( "platformName" ) then require("win\_fix") end

If it doesn’t work, try to rename the file (example: win.lua) and change the require call:

require("win")&nbsp;

@slok1997  

Short answer: No.  It only works on devices and the Mac Simulator.  

Longer answer:

You can’t simulate the text field on Windows (http://docs.coronalabs.com/daily/api/type/TextField/index.html)

Your best bet is to upload it to your Android device and test it there.

omg thankyou!

okay :frowning:

umm can you only upload it to your android device or can you also work with a iphone/ ipad?

and how exactly do you “upload” it?

If you already need it, I wrote a simple implementation of the native textField for windows… It’s quite buggy, but can be useful ^^

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

thank you very much for the implementation “progiemmeh”

I tried working with it… it gives me a error on my simulator…

I don’t know if I used it correctly…

so do I just write that 4 lines of code before my actual work and then launch the simulator?

my error:

module ‘win_fix’ not found: resource (win.fix.lu) does not exist in archive[etc…]

I like what you are trying to you “progiemmeh” this is benifitial to everyone keep up with your efforts and let me know if you have worked-out anything. ThankYou

Hi,

Just download this file:

https://raw.github.com/ProGM/CoronaSDK-win-native/master/win_fix.lua

And add it to your project folder in order to make it work :wink:

I’ll add a more precise installation description.

hey progiemmeh!

man I don’t know whats happening!

I think I don’t have a proper description of what to do…

can you please explain where to exactly put that file?

I placed it in the same folder as my main.lua file, that made no difference…

I feel like i am suppose to do something else…

can you please give me a accurate description of how to actually work with this please?

  • after all i am a Newbie :0

Ok:

1 - Download the file and put it in your corona project folder (as you have actually done). Check that the filename is win_fix.lua, not win_fix.lua.txt or something else. To be sure, check that the icon of win_fix.lua is the same as the main.lua, or just right click, select properties, and check the file type (it should be the same as main.lua).

2 - Add the following at the beginning of your main.lua file:

if "Win" == system.getInfo( "platformName" ) then require("win\_fix") end

If it doesn’t work, try to rename the file (example: win.lua) and change the require call:

require("win")&nbsp;