TextField:setTextColor: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 4: Line 4:
'''<translate>Class</translate>:''' [[Special:MyLanguage/TextField|TextField]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/TextField|TextField]]<br/>
=== <translate>Description</translate> ===
=== <translate>Description</translate> ===
<translate><br />
<translate>Sets the color of the text in a text field in hexadecimal format.</translate>
<br />
 
Sets the color of the text in a text field in hexadecimal format.<br />
<br />
<br /></translate>
<source lang="lua">
<source lang="lua">
TextField:setTextColor(color)
TextField:setTextColor(color)
</source>
</source>
=== <translate>Parameters</translate> ===
=== <translate>Parameters</translate> ===
'''color''': (number) <translate>color of the text in hexadecimal format.</translate> <br/>
'''color''': (number) <translate>color of the text in hexadecimal format.</translate> <br/>
=== <translate>Examples</translate> ===
=== <translate>Examples</translate> ===
'''Example'''<br/>
<source lang="lua">textfield:setTextColor(0xff0000) -- red
<source lang="lua">textfield:setTextColor(0xff0000) -- red
textfield:setTextColor(0x00ff00) -- green
textfield:setTextColor(0x00ff00) -- green

Revision as of 00:43, 4 December 2019


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