Name
Texteditor.SetColor -- change color of text block (V1.2)
Synopsis
mui.DoMethod(id, "SetColor", startx, starty, stopx, stopy, color)
Function
This method changes the color of a text block that is defined by four coordinates (startx, starty, stopx, stopy).

Startx, starty, stopx, and stopy can either be absolute coordinates or one of the following special values:

Min
Specifies the first line or column.

Max
Specifies the last line or column.

From the Hollywood script the color is specified as a simple numerical value containing 8 bits for each component. When you specify the color in the XML file, it has to be passed as a 6 character string prefixed by the #-character (just like in HTML).

To change the color that should be used for newly text, use the Texteditor.Color attribute instead.

Inputs
id
id of the text editor object
start_x
start x position
start_y
start y position
stop_x
stop x position
stop_y
stop y position
color
desired color for text

Show TOC