Difference between revisions of "TextField:setTextColor"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> <br /> Sets the color of the text in a text field in hexadecimal format.<br /> <br /> <br /> <s...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
<br />
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/TextField|TextField]]<br/>
<br />
+
=== <translate>Description</translate> ===
Sets the color of the text in a text field in hexadecimal format.<br />
+
<translate>Sets the color of the text in a text field in hexadecimal format.</translate>
<br />
+
 
<br />
+
<syntaxhighlight lang="lua">
<source lang="lua">
+
TextField:setTextColor(color)
= TextField:setTextColor(color,)
+
</syntaxhighlight>
</source>
+
 
'''color:''' (number) color of the text in hexadecimal format. ''''''<br/>
+
=== <translate>Parameters</translate> ===
 +
'''color''': (number) <translate>color of the text in hexadecimal format.</translate> <br/>
 +
 
 +
=== <translate>Examples</translate> ===
 +
<syntaxhighlight lang="lua">textfield:setTextColor(0xff0000) -- red
 +
textfield:setTextColor(0x00ff00) -- green
 +
textfield:setTextColor(0x0000ff) -- blue</syntaxhighlight>
 +
 
 +
{{TextField}}

Latest revision as of 15:33, 13 July 2023


Available since: Gideros 2011.6
Class: TextField

Description

Sets the color of the text in a text field in hexadecimal format.

TextField:setTextColor(color)

Parameters

color: (number) color of the text in hexadecimal format.

Examples

textfield:setTextColor(0xff0000)	-- red
textfield:setTextColor(0x00ff00)	-- green
textfield:setTextColor(0x0000ff)	-- blue