Difference between revisions of "TextField.new"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Creates a new `TextField` object with the specified font and text. Gideros runtime includes a<b...") |
|||
Line 7: | Line 7: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | TextField.new(font,text,sample,layout) | |
</source> | </source> | ||
− | '''font | + | '''font''': (FontBase) The font used for displaying this `TextField` object. If nil, default font is used. ''''''<br/> |
− | '''text | + | '''text''': (string, optional) The text to be displayed. ''''''<br/> |
− | '''sample | + | '''sample''': (string) sample to determine line height '''optional'''<br/> |
− | '''layout | + | '''layout''': (table) Layout parameters, see `TextField:setLayout` '''optional'''<br/> |
Revision as of 10:16, 23 August 2018
Available since: Gideros 2011.6
Description
Creates a new `TextField` object with the specified font and text. Gideros runtime includes a
default font. If you specify `nil` for the font parameter while creating the `TextField` object, default font is used.
TextField.new(font,text,sample,layout)
'font: (FontBase) The font used for displaying this `TextField` object. If nil, default font is used. '
'text: (string, optional) The text to be displayed. '
sample: (string) sample to determine line height optional
layout: (table) Layout parameters, see `TextField:setLayout` optional