Here is some code. About text field. As you can see the front square should be in front of the text field but it’s not. Because the text field is not part of the display hierchy. This creates lots of hassle as I was saying before.
Also we are currently not able to change the appearance of the input field. It’s really a pain.
Try to type a lot in it. See how it doesn’t go to the next line? There are so many missing features that make it impossible to use for anything above 50 chars or so.
back = display.newRect(0,0,200,200)
local function fieldHandler (event)
if ( "began" == event.phase ) then
-- This is the "keyboard has appeared" event
-- In some cases you may want to adjust the interface when the keyboard appears.
elseif ( "ended" == event.phase ) then
-- This event is called when the user stops editing a field: for example, when they touch a different field
-- Hide keyboard
native.setKeyboardFocus( nil )
elseif ( "submitted" == event.phase ) then
-- This event occurs when the user presses the "return" key (if available) on the onscreen keyboard
-- Hide keyboard
native.setKeyboardFocus( newDescriptionTextField )
end
end
newTitleTextField = native.newTextField( 13, 64, 200, 45, fieldHandler )
front = display.newRect(10,20,300,300)
front:setFillColor(255,0,0,255)
[import]uid: 8192 topic_id: 7999 reply_id: 36685[/import]