TextField:setTextColor: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 6: Line 6:
<translate>Sets the color of the text in a text field in hexadecimal format.</translate>
<translate>Sets the color of the text in a text field in hexadecimal format.</translate>


<source lang="lua">
<syntaxhighlight lang="lua">
TextField:setTextColor(color)
TextField:setTextColor(color)
</source>
</source>
Line 14: Line 14:


=== <translate>Examples</translate> ===
=== <translate>Examples</translate> ===
<source 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</source>
textfield:setTextColor(0x0000ff) -- blue</source>


{{TextField}}
{{TextField}}

Revision as of 13:31, 13 July 2023


Available since: Gideros 2011.6
Class: TextField

Description

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

<syntaxhighlight lang="lua"> TextField:setTextColor(color) </source>

Parameters

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

Examples

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