TextField:setTextColor: Difference between revisions

From GiderosMobile
m Text replacement - "</source>" to "</syntaxhighlight>"
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
<languages />
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''Class:''' [[TextField]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/TextField|TextField]]<br/>
=== <translate>Description</translate> ===
<translate>Sets the color of the text in a text field in hexadecimal format.</translate>


=== Description ===
Sets the color of the text in a TextField in hexadecimal format.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
TextField:setTextColor(color)
TextField:setTextColor(color)
</syntaxhighlight>
</syntaxhighlight>


=== <translate>Parameters</translate> ===
=== Parameters ===
'''color''': (number) <translate>color of the text in hexadecimal format.</translate> <br/>
'''color''': (number) color of the text in hexadecimal format<br/>


=== <translate>Examples</translate> ===
=== Examples ===
<syntaxhighlight lang="lua">textfield:setTextColor(0xff0000) -- red
<syntaxhighlight lang="lua">
textfield:setTextColor(0xff0000) -- red
textfield:setTextColor(0x00ff00) -- green
textfield:setTextColor(0x00ff00) -- green
textfield:setTextColor(0x0000ff) -- blue</syntaxhighlight>
textfield:setTextColor(0x0000ff) -- blue
</syntaxhighlight>


{{TextField}}
{{TextField}}

Revision as of 07:19, 18 October 2024

Available since: Gideros 2011.6
Class: TextField

Description

Sets the color of the text in a TextField 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