How to have a native text field inside of a scrollview

You have to add your scrollView or tableView to the scene’s group just like you would any other display object.

Are there any general pdf documents or pdf manuals available on Corona/lua programming offered by Corona?  I am new to Corona, and am currently teaching myself based off our previous app’s code, and online forums.  

Hi @app.help,

There are many learning resources and guides located in Corona University. Most new users begin with these resources to get a foundational understanding of the SDK, then move on the API documentation for more specific details.

http://www.coronalabs.com/resources/tutorials/getting-started-with-corona/

If you’re looking for an actual book, there are many offerings located in our “Books and Courses” section here:

http://www.coronalabs.com/resources/books/

Hope this helps,

Brent Sorrentino

Is there a way to limit the scroll view to a certain area of the screen so it does not scroll over the page header of the app screen?

Hi @app.help,

Yes, you can do this by masking the scroll view with a mask image. This is described in the documentation here:

http://docs.coronalabs.com/api/library/widget/newScrollView.html

Be sure to read the details on how to properly create a mask (specific pixel multiples, border around, etc.). The link to the Masking guide is located in the same document above.

Best regards,

Brent Sorrentino

Thank you.  I was able to get that fixed, but when I click the back button to go to the previous screen (storyboard scene) everything within the scrollView stays on the screen.  

You have to add your scrollView or tableView to the scene’s group just like you would any other display object.

Are there any general pdf documents or pdf manuals available on Corona/lua programming offered by Corona?  I am new to Corona, and am currently teaching myself based off our previous app’s code, and online forums.  

Hi @app.help,

There are many learning resources and guides located in Corona University. Most new users begin with these resources to get a foundational understanding of the SDK, then move on the API documentation for more specific details.

http://www.coronalabs.com/resources/tutorials/getting-started-with-corona/

If you’re looking for an actual book, there are many offerings located in our “Books and Courses” section here:

http://www.coronalabs.com/resources/books/

Hope this helps,

Brent Sorrentino

If you look at the newTextField documentation in the “gotchas” section it looks like native text fields have a little more functionality – you can add them to display groups and they will stay in unison.  

Native text fields are not part of the OpenGL canvas and do not obey the display object hierarchy, so they will always appear in front of normal display objects including images, text, and vector objects. However, native text fields can be “inserted” into Corona display groups and they will move in unison with that group.

I tried this out and it works great.  I create a display group, throw a background in it and insert a textfield into it.  I then add this display group to the scroll view and the native text fields scroll nicely.  

If you look at the newTextField documentation in the “gotchas” section it looks like native text fields have a little more functionality – you can add them to display groups and they will stay in unison.  

Native text fields are not part of the OpenGL canvas and do not obey the display object hierarchy, so they will always appear in front of normal display objects including images, text, and vector objects. However, native text fields can be “inserted” into Corona display groups and they will move in unison with that group.

I tried this out and it works great.  I create a display group, throw a background in it and insert a textfield into it.  I then add this display group to the scroll view and the native text fields scroll nicely.