Difference between revisions of "TextField:setTextColor"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
 
<br />
 
<br />
 
Sets the color of the text in a text field in hexadecimal format.<br />
 
Sets the color of the text in a text field in hexadecimal format.<br />
 
<br />
 
<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
  TextField:setTextColor(color)
 
  TextField:setTextColor(color)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''color''': (number) color of the text in hexadecimal format. <br/>
+
'''color''': (number) <translate>color of the text in hexadecimal format.</translate> <br/>
 
=== Examples ===
 
=== Examples ===
 
'''Example'''<br/>
 
'''Example'''<br/>
<source lang="lua">textfield:setTextColor(0xff0000) -- red<br />
+
<source lang="lua">textfield:setTextColor(0xff0000) -- red
textfield:setTextColor(0x00ff00) -- green<br />
+
textfield:setTextColor(0x00ff00) -- green
textfield:setTextColor(0x0000ff) -- blue<br /></source>
+
textfield:setTextColor(0x0000ff) -- blue</source>

Revision as of 14:38, 23 August 2018

Available since: Gideros 2011.6

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

Example

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