TextField:setText

From GiderosMobile
Revision as of 14:33, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")

Available since: Gideros 2011.6
Class: TextField

Description

Sets the text to be displayed. Gideros accepts special escape sequences within the text to modify rendering, in the form of \e[key1=value1,key2=value2,...]. Value can be omitted (and the equal sign too in this case), in which case the effect specified by the key is reset to its default value.
Accepted keys are:

  • color: Set the color of the next characters, in the form #rgb, #rgba, #rrggbb or #rrggbbaa
  • font: Specify the font to use, relevant if the font is a CompositeFont
TextField:setText(text)

Parameters

text: (string) the text to be displayed