Difference between revisions of "TextField.new"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
Creates a new [[Special:MyLanguage/TextField|TextField]] object with the specified font and text. Gideros runtime includes a<br /> | Creates a new [[Special:MyLanguage/TextField|TextField]] object with the specified font and text. Gideros runtime includes a<br /> | ||
Line 9: | Line 9: | ||
TextField.new(font,text,sample,layout) | TextField.new(font,text,sample,layout) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''font''': (FontBase) <translate>The font used for displaying this [[Special:MyLanguage/TextField|TextField]] object. If nil, default font is used.</translate> <br/> | '''font''': (FontBase) <translate>The font used for displaying this [[Special:MyLanguage/TextField|TextField]] object. If nil, default font is used.</translate> <br/> | ||
'''text''': (string, optional) <translate>The text to be displayed.</translate> <br/> | '''text''': (string, optional) <translate>The text to be displayed.</translate> <br/> | ||
'''sample''': (string) <translate>sample to determine line height</translate> '''optional'''<br/> | '''sample''': (string) <translate>sample to determine line height</translate> '''optional'''<br/> | ||
'''layout''': (table) <translate>Layout parameters, see [[Special:MyLanguage/TextField:setLayout|TextField:setLayout]]</translate> '''optional'''<br/> | '''layout''': (table) <translate>Layout parameters, see [[Special:MyLanguage/TextField:setLayout|TextField:setLayout]]</translate> '''optional'''<br/> |
Revision as of 07:26, 24 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)
Parameters
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