Remove Border Around textField

Hi,

As far as I can tell it is not possible to remove the border around the native.textField.

If someone does know how to do this please can you let me know.

Thanks Jel [import]uid: 13916 topic_id: 20137 reply_id: 320137[/import]

may be you can do something like

[lua]local textfield = native.newTextField(0,0,200,100)
local myText = display.newText(“here”,0,200,nil,36)
myText:setReferencePoint(display.TopLeftReferencePoint)

local function callMe()
myText.text = textfield.text
myText:setReferencePoint(display.TopLeftReferencePoint)
end
Runtime:addEventListener(“enterFrame”,callMe)[/lua]

just take textbox to outside of the screen and put dummy textbox to show text on it if that can feet with your need
:slight_smile: [import]uid: 12482 topic_id: 20137 reply_id: 78683[/import]

Thanks hgvyas123,

Your a star. It actually answered another question I had about outputting text from the textFields

Jel [import]uid: 13916 topic_id: 20137 reply_id: 78685[/import]

Sorry one more question. How would I change the font ?

You can tell I’m a newbie. [import]uid: 13916 topic_id: 20137 reply_id: 78691[/import]

hi welcome and no need to sorry,

chk this link for fonts

http://developer.anscamobile.com/content/display-objects#Using_a_custom_font
:slight_smile: [import]uid: 12482 topic_id: 20137 reply_id: 78693[/import]

I´m trying to have understand your code, but I don´t fully understand it. What I´m trying to do is have a textfield that is fully invisible(also the frame border) and so far I have:

local textBox = native.newTextField( 210, 200, 100, 30, txtList)  
textBox:setTextColor(0, 0, 0, 255 )  
textBox.hasBackground = false  

Could you give an example on how to remove the border on this textfield?

thanks [import]uid: 93074 topic_id: 20137 reply_id: 84703[/import]

basically in above code textbox is outside of the screen and we are continuously taking the value in it to our text so no issue of border ( i have not tested above code still!!!)
:slight_smile: [import]uid: 12482 topic_id: 20137 reply_id: 84868[/import]