Hiding TextBox text behind other objects.

Hi all. 

I’m really new to Corona/Lua and programming in general so apologies in advance if I fail to understand certain things.

I’ll get straight to the point. I’m building a crossword game where the user can touch and drag the screen to move around the crossword. At the top is a block where the exit button and hints are shown. Now the crossword boxes/background disappears fine when they are dragged near the bar. They neatly slide under it out of view, however I’ve used TextBoxes as inputs for the crossword boxes. The text entered in these boxes still shows over the hint bar and makes it difficult to read the hints. 

The TextBoxes are on the same ‘layer’ (the parts that do not scroll with the touch/drag are in a separate group which uses :toFront() to gain visual priority)  as the regular box outlines yet still show over the hints while the black outline boxes do not. 

Does anyone know how I can have the TextBox text slide under the hint bar just like the standard image boxes do? 

Thanks

Hi @nintendan_95,

Welcome to Corona! OS-native objects like text input fields and boxes are not part of the Corona OpenGL “canvas” so they will always reside above that content. Please see the documentation below (“Gotchas” section) for more details on this:

http://docs.coronalabs.com/api/library/native/newTextField.html

Take care,

Brent

Hi Brent, 

I’m a new user of the forums, but I’m not sure how to get my posts to appear. I don’t know if you’re going to see this, but would you happen to be able to approve new accounts? Thank you. 

Kind regards, 

Chad

New posters have to be approved my a moderator the first time.  While we try to watch the forums every day, we are not on the forums 24/7.  I approved your posts earlier.

Rob

Hi @nintendan_95,

Welcome to Corona! OS-native objects like text input fields and boxes are not part of the Corona OpenGL “canvas” so they will always reside above that content. Please see the documentation below (“Gotchas” section) for more details on this:

http://docs.coronalabs.com/api/library/native/newTextField.html

Take care,

Brent

Hi Brent, 

I’m a new user of the forums, but I’m not sure how to get my posts to appear. I don’t know if you’re going to see this, but would you happen to be able to approve new accounts? Thank you. 

Kind regards, 

Chad

New posters have to be approved my a moderator the first time.  While we try to watch the forums every day, we are not on the forums 24/7.  I approved your posts earlier.

Rob