display.newGroup() bug

native.textFields do not seem to get inserted into groups with build 243 i tried it on build 109 and it gets inserted into the group

here is the code im using just incase im doing something worng
you have to build for x-code sim for it to run and download the scrollView code from here then try to scroll up and down
http://developer.anscamobile.com/code/scroll-content

[blockcode]
local scrollView = require(“scrollView”)
local scrollView = scrollView.new{ top = 0, bottom = 0 }

local gpCI = display.newGroup()
scrollView:insert(gpCI)
local imgTest = display.newRect(0,0,240,960)
imgTest.rotation = 10
imgTest:setFillColor( 235, 10, 157 )
gpCI:insert(imgTest)
function onFirstName( event )
if (“began” == event.phase ) then
elseif (“submitted” == event.phase ) then
native.setKeyboardFocus( lastNameField )
end
end

function onLastName( event )
if (“began” == event.phase ) then
elseif (“submitted” == event.phase ) then
native.setKeyboardFocus( firstNameField )
end
end
firstNameField = native.newTextField( 56, 79, 208, 32, onFirstName )
firstNameField.font = native.newFont( native.systemFontBold, 24 )
firstNameField.text = “”
firstNameField.inputType = “default”
firstNameField:setTextColor( 0, 0, 0 )
gpCI:insert(1, firstNameField)

lastNameField = native.newTextField( 56, 127, 208, 32, onLastName )
lastNameField.font = native.newFont( native.systemFontBold, 24 )
lastNameField.text = “”
lastNameField.inputType = “default”
lastNameField:setTextColor( 0, 0, 0 )
gpCI:insert(2, lastNameField)
[/blockcode] [import]uid: 7911 topic_id: 4595 reply_id: 304595[/import]

also can not get native.newTextBox to receive focus

here is the updated code to include native.newTextBox

[blockcode]
local scrollView = require(“scrollView”)
local scrollView = scrollView.new{ top = 0, bottom = 0 }

local gpCI = display.newGroup()
scrollView:insert(gpCI)
local imgTest = display.newRect(0,0,240,960)
imgTest.rotation = 10
imgTest:setFillColor( 235, 10, 157 )
gpCI:insert(imgTest)
function onFirstName( event )
if (“began” == event.phase ) then
elseif (“submitted” == event.phase ) then
native.setKeyboardFocus( lastNameField )
end
end

function onLastName( event )
if (“began” == event.phase ) then
elseif (“submitted” == event.phase ) then
native.setKeyboardFocus( noteField )
end
end

function onNote(event)
if (“began” == event.phase ) then
elseif (“submitted” == event.phase ) then
native.setKeyboardFocus( nil )
end
end
firstNameField = native.newTextField( 56, 79, 208, 32, onFirstName )
firstNameField.font = native.newFont( native.systemFontBold, 24 )
firstNameField.text = “”
firstNameField.inputType = “default”
firstNameField:setTextColor( 0, 0, 0 )
gpCI:insert(1, firstNameField)

lastNameField = native.newTextField( 56, 127, 208, 32, onLastName )
lastNameField.font = native.newFont( native.systemFontBold, 24 )
lastNameField.text = “”
lastNameField.inputType = “default”
lastNameField:setTextColor( 0, 0, 0 )
gpCI:insert(2, lastNameField)

noteField = native.newTextBox( 56, 175, 208, 96, onNote)
noteField.text = “”
noteField:setTextColor(0, 0, 0 )
noteField.inputType = “default”
noteField.font = native.newFont( native.systemFontBold, 24 )
gpCI:insert(3, noteField)
[/blockcode] [import]uid: 7911 topic_id: 4595 reply_id: 14523[/import]

native.newTextBox is a display-only text box and cannot receive text. Our API page was wrong and has since been fixed. Only native.newTextField can receive text input.

I’m still looking at the group problem and will let you know what I find.

Thanks,
-Tom [import]uid: 7559 topic_id: 4595 reply_id: 14620[/import]

Thanks Tom I kinda figured the textbox might have been display only but the API said different so that’s why I asked and it wasn’t a problem I could just make my textfield bigger but I do need to insert the textfields into a group so I can scroll through all of the textfields I could just build with 109 if the server is still allowing it when I’m done except for the fact that I also need the mapkit

Thanks for the response and I’ll be waiting [import]uid: 7911 topic_id: 4595 reply_id: 14622[/import]

I just confirmed that there is a problem with native.textField and native.textBox objects when added to a group. This was working in build #148 but broken in #243. I created bug #2527 for tracking.

I don’t know a work-around for the scrolling you’re trying to do.

-Tom [import]uid: 7559 topic_id: 4595 reply_id: 14626[/import]

Ok thanks [import]uid: 7911 topic_id: 4595 reply_id: 14628[/import]

I also wait for the solution of the problem.
bye
[import]uid: 2735 topic_id: 4595 reply_id: 15859[/import]

I just ran into this problem too. Back to previous version until this bug is fixed. [import]uid: 295 topic_id: 4595 reply_id: 14880[/import]

Any updates on this?

-Steven [import]uid: 7175 topic_id: 4595 reply_id: 25983[/import]

It’s not fixed yet. It’s still on the list for a fix. You can monitor our daily builds (if you are a subscriber) for bug fixes and new features. [import]uid: 7559 topic_id: 4595 reply_id: 25987[/import]

Thanks for the update Tom. I am a subscriber so I will continue to watch for it in the daily builds. Hope it is soon. This is a show stopper for the project I am on.

-Steven [import]uid: 7175 topic_id: 4595 reply_id: 25991[/import]