of_setTextColor

Description

Sets the text color of an item. With this method it is possible for each toolBarItem to be a different color.

Syntax

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

Parameter(s)

Name Type Description
item Long or String The name or index of button for which the text color is to be set. The name of the button is the name the programmer gave when of_addItem was called or when of_setText was last called. The name is the text displayed for a toolbar when display text is enabled. The index of the button is the same as the value returned when of_addItem was called
color Long A long value containing the long version of the RGB() color of the text

Return Value

None

Usage

There are no special usage notes.

Examples

of_setTextColor('Open', Long(255, 0, 0))

See Also

None

Last edited Sep 28, 2016 at 10:51 AM by cjharris02892, version 2