Difference between revisions of "TextField:setTextColor"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(One intermediate revision by the same user not shown) | |||
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> | ||
− | < | + | <syntaxhighlight lang="lua"> |
TextField:setTextColor(color) | TextField:setTextColor(color) | ||
− | </ | + | </syntaxhighlight> |
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
Line 14: | Line 14: | ||
=== <translate>Examples</translate> === | === <translate>Examples</translate> === | ||
− | < | + | <syntaxhighlight lang="lua">textfield:setTextColor(0xff0000) -- red |
textfield:setTextColor(0x00ff00) -- green | textfield:setTextColor(0x00ff00) -- green | ||
− | textfield:setTextColor(0x0000ff) -- blue</ | + | textfield:setTextColor(0x0000ff) -- blue</syntaxhighlight> |
{{TextField}} | {{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
- TextField
- TextField.new
- TextField:getLayout
- TextField:getLetterSpacing
- TextField:getLineHeight
- TextField:getPointFromTextPosition
- TextField:getSample
- TextField:getText
- TextField:getTextColor
- TextField:getTextPositionFromPoint
- TextField:setFont
- TextField:setLayout
- TextField:setLetterSpacing
- TextField:setSample
- TextField:setText
- TextField:setTextColor