of_setTextColor

Description

Sets the text color of a group, label or link. With this method it is possible for each item to be a different color.

Syntax

of_setTextColor(Long item, Long color)
of_setTextColor(String item, Long color)

of_setTextColor(String group, String item, Long color)

Parameter(s)

Name Type Description
group String The name of the group containing the item for which the text color is to be set. The text of the group is the text the programmer gave when of_addGroup was called or when of_setText was last called for the item. This parameter is optional.
item Long or String The name or index of the item for which the visible indicator is to be set. The text of the item is the text the programmer gave when of_addGroup, of_addLabel or of_addLink was called or when of_setText was last called for the item. The index of the item is the same as the value returned when of_addGroup, of_addLabel or of_addLink was called.
color Long A long value containing the long version of the RGB() color of the text

Return Value

None

Usage

When the group parameter is included, the item parameter should only contain a label or link reference. When the group parameter is excluded, the item parameter can reference a group, label or link.

Examples

of_setTextColor('File', 'Save', RGB(255, 0, 0))

See Also

None

Last edited Sep 28, 2016 at 11:01 AM by cjharris02892, version 4