Hi everyone
so my question is...
1 2 3 4 5 | 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 ) |
You should use
msgField = native.newTextBox
msgField.isEditable=true
Maholm
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
another thing... how can I get the menssage written?
I tried to use msgField.text but didn't work
Try this.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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 )) |
views:1450 update:2011/11/17 9:28:17