So I’m a first time Corona user, I am not new to programming though I have worked with C++, Python, PHP, and Java to new a few languages.
I am new to Corona though, I have tried looking at a few tutorials and bought a video course from infinite skills, however the course was not made for the style of learning I have.
I decided the best way I have learned other languages and libraries is to just jump right into a project.
For my first project I am working on a app the takes a user input number from a text field then multiplies that number with a set number. The user is asked to do this 3 times and then the app adds all three numbers together and then outputs the value. Its something I need for work (telecommunications engineering) so this is really to benefit me. I already have the logic and I tested the logic in Python prior to even thinking about porting it to Corona.
-So far the problem I run into is I cant get the native.textField to show up on the emulator.
I do get an error on the corona console: “Warning : native text fields are not currently supported in the simulator”
And I understand what that means. I have however done this during a tutorial and although the text field did not look like it would on an actual device, I could see a text field.
Any help is appreciated.
Here is my code so far for the single text field.
\_W = display.viewableContentWidth \_H = display.viewableContentHeight local background = display.newRect(0, 0, \_W, \_H) background:setFillColor ( 255,255,255 ) local distance = native.newTextField ( 0, 0, \_W\*.8, 48 ) distance.inputType = "default" distance.x = \_W \*5 distance.y = 100 local font = "HelveticaNeue" or system.nativeFont distance.font = native.newFont (font, 24 ) local hintText = "Cable Length" distance.text = hintText