Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8343127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:57:53+00:00 2026-06-09T05:57:53+00:00

In Corona SDK, I’m looking for an example/tutorial of something that seems like it

  • 0

In Corona SDK, I’m looking for an example/tutorial of something that seems like it should be incredibly basic: including a text input field within a scrollview.

I have been using widget.newScrollView() for the scrollview, and native.newTextField() for the text input field. The problem, of course, is that the “native” objects exist outside the Corona display object hierarchy, so the textfield can’t be placed inside the scrollview and scrolled that way.

A comment on this Corona Labs blog post suggests the technique of using a placeholder image that looks like a textfield, with a touch listener that overlays the real textfield when the user touches it. Is that the best approach to take?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:57:55+00:00Added an answer on June 9, 2026 at 5:57 am

    “Faking it” is a proven method of getting stuff done when programming, whether you’re using Corona SDK or anything else. While it’s nice not to have to jump through hoops to get something done, sometimes it’s just the best way to handle it.

    In this case, I think using a placeholder is probably the best way to go. You could create a function that uses display.newRect to create the frame of the fake textfield and then display.newText to put in the default and/or user-supplied text.

    Something like:

    local dObj = showFauxTextfield(x, y, width, height, str)
    

    Create the rect and text according to the parameters passed in, put them into a display group, and pass that back to the calling code. You can then put that into your regular display group along with everything else.

    Inside showFauxTextfield() you’ll create an event handler that pops up a native.newTextField when it’s touched.

    It’s a little extra work, but Corona typically saves you a lot of dev time anyway, so you’ll probably still come out ahead. 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking at getting started with simple mobile app development. Corona SDK looks like
We write application with Corona SDK for new cell phones like iPhone4 and SamsungGalaxy2.
I am working on a Corona sdk lua app for Android devices that does
I want to create an iPhone/iPad applications using Corona SDK. But they should be
I'm making an app in the Corona SDK that reads a .txt file from
I'm using Corona SDK to make a simple app that requires luasocket. Corona SDK
Is there any game SDK for android games like Corona which can be used
In corona SDK how to add label(text) to images I have created my image
I am checking out Corona SDK and looking to adapt the Coffee Demo (
Im using the Corona SDK. Here is an example of my file directory... -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.