Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Native.TextField help on WINDOWS
Started by slok1997 Mar 02 2014 06:10 PM

* * * * * 1 votes
7 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

slok1997

[GLOBAL: userInfoPane.html]
slok1997
  • Observer

  • 12 posts
  • Corona SDK

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 :<

 



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,508 posts
  • Corona SDK

@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.



[TOPIC: post.html]
#3

slok1997

[GLOBAL: userInfoPane.html]
slok1997
  • Observer

  • 12 posts
  • Corona SDK

omg thankyou!

 

okay :(

 

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?



[TOPIC: post.html]
#4

progiemmeh

[GLOBAL: userInfoPane.html]
progiemmeh
  • Observer

  • 8 posts
  • Corona SDK

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



[TOPIC: post.html]
#5

slok1997

[GLOBAL: userInfoPane.html]
slok1997
  • Observer

  • 12 posts
  • Corona SDK

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



[TOPIC: post.html]
#6

progiemmeh

[GLOBAL: userInfoPane.html]
progiemmeh
  • Observer

  • 8 posts
  • Corona SDK

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 ;)

 

I'll add a more precise installation description.



[TOPIC: post.html]
#7

slok1997

[GLOBAL: userInfoPane.html]
slok1997
  • Observer

  • 12 posts
  • Corona SDK

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



[TOPIC: post.html]
#8

progiemmeh

[GLOBAL: userInfoPane.html]
progiemmeh
  • Observer

  • 8 posts
  • Corona SDK

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") 



[topic_controls]
[/topic_controls]