Keyboard Question

Hi everyone

so my question is…

msgField = native.newTextField( 25, -130 , 270, 180, onEmailTouch )  
msgField.font = native.newFont( native.systemFontBold, inputFontSize )  
msgField.text = ""  
msgField:setTextColor( 51, 51, 122, 255 )  
keyboardGroup:insert( msgField )  

Why this textField only write 1 line? I wish that when the words reached the edge of the field, start typing in another line below the first

It can be done?

Thanks [import]uid: 23063 topic_id: 17812 reply_id: 317812[/import]

You should use

msgField = native.newTextBox
msgField.isEditable=true
Maholm

[import]uid: 5717 topic_id: 17812 reply_id: 67979[/import]

Thanks this works but do not have the same image as the newTextField … I mean the outline
there is another way to do this?
thanks [import]uid: 23063 topic_id: 17812 reply_id: 67982[/import]

another thing… how can I get the menssage written?

I tried to use msgField.text but didn’t work [import]uid: 23063 topic_id: 17812 reply_id: 67985[/import]

Try this.

[code]local function onEmailTouch( getObj )
return function( event )
if ( “began” == event.phase ) then
– This is the “keyboard has appeared” event

native.setKeyboardFocus(msgField)
elseif ( “ended” == event.phase ) then

elseif ( “submitted” == event.phase ) then

end

end
end

msgField = native.newTextBox( 25, -130 , 270, 180,onEmailTouch( function() return msgField end ))
[/code] [import]uid: 5717 topic_id: 17812 reply_id: 67992[/import]