TextField background keeps visible

Hi all,

I use a textField in my app to search a database. This works well, but I can’t change the color of the textFields background. It’a white instead of transparent, even by setting the hasBackground-property to true. I searched and found a solution by placing the textField outside the screen and placing it back after changing hasBackground, but this doesn’t work either.

A little code snippet:
[blockcode]
searchField = native.newTextField(55, 43, 220, 24, fieldHandler(function() return searchField end))
searchField:setTextColor(255, 255, 255)
searchField.hasBackground = true
[/blockcode]

Can anyone help me out?

Thanks in advance,

Danny [import]uid: 158051 topic_id: 28723 reply_id: 328723[/import]

You’re meant to set hasBackground to false, not true - then build for xcode simulator. (I’m pretty sure in Corona simulator it will still show the background.) [import]uid: 52491 topic_id: 28723 reply_id: 115794[/import]

Thnkz peach. I will give this a try :slight_smile: [import]uid: 158051 topic_id: 28723 reply_id: 115803[/import]

Great - let me know how you go. (It should work just fine.) :slight_smile: [import]uid: 52491 topic_id: 28723 reply_id: 115882[/import]