This is the code i have after publishing :
(made with kwik, i understand that can be a little bit different for you)
i made 2 layers :
back (background)
and kwiksher offer you the possibility to replace a blank rectangle that i named “area”
the code :
– area positioning
local function fieldHandler_area(event)
if (“began” == event.phase) then
elseif (“ended” == event.phase) then
elseif (“submitted” == event.phase) then
local path = system.pathForFile( “gogo.txt”, system.DocumentsDirectory )
local file = io.open( path, “w+” )
file:write( area.text )
io.close( file )
native.setKeyboardFocus(nil)
end
end
area = native.newTextField( 278, 312, 1480, 204 )
area.input = “phone”
area:addEventListener( “userInput”, fieldHandler_area )
area.oriX = area.x; area.oriY = area.y
So we are talking about native.newTextField…right?
if i want to change the font of this native.newTextField i will add this code to a button :
local myField.font = native.newFont( native.systemFontBold, 18 ) --you can use a font name instead of the native.systemFontBold entry
And if i have 4 fonts, and 4 buttons to select the font i want to use i just need this “area” (blank rectagnle)?
I feel stupid to post here as i am not a codder. ;(
Thank you