Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
multiline textfield not working? - Gideros Forum

multiline textfield not working?

piepie Member
edited March 11 in Bugs and issues
Hi,
I can't make multiline work in the new TextField. Am I missing something?
gideros 2018.2.1
local text =  "Nam a facilisis lectus, elementum maximus quam. Morbi mattis, sapien eget auctor aliquam, justo nisl rutrum lorem, auctor finibus libero odio eu arcu. Donec placerat ornare diam, ac laoreet dui. Maecenas lacinia mollis augue, id porttitor velit finibus at. Aliquam ac viverra purus. Cras ultricies tortor nec justo ullamcorper rhoncus. Donec luctus dui sed ipsum euismod tincidunt. "
-- local text = [[
Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
Nam a facilisis lectus, elementum maximus quam. Morbi mattis, sapien eget auctor aliquam, justo nisl rutrum lorem, auctor finibus libero odio eu arcu. Donec placerat ornare diam, ac laoreet dui. Maecenas lacinia mollis augue, id porttitor velit finibus at. Aliquam ac viverra purus. Cras ultricies tortor nec justo ullamcorper rhoncus. Donec luctus dui sed ipsum euismod tincidunt. 
Nam bibendum sagittis eleifend. 
Proin sit amet magna convallis libero malesuada pulvinar. 
]]
 
local testfield = TextField.new(nil, text)
testfield:setY(40)
testfield:setLayout({w = 200})
stage:addChild(testfield)
Thank you :smile:

Comments

Sign In or Register to comment.