An item's color settings.

Usage

Set_Property(OLECtrlEntID, "OLE.ItemColors[key]", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>Text ColorColorThe color of the item's textWindowText
<2>BackgroundColor FillThe item's backgroundWindow

Indices

IndexDescription
keyAn item's unique key

Remarks

The ItemColors property allows you to customize the text color and background of an item. This property has two fields. The first field sets the text color and the second one sets the item's background. The text can be any valid Color value while the background utilizes the powerful Color Fill technology.

 


This property establishes colors of the item in it's normal state. However, these colors may be overridden by the colors specified in the Colors property when the item becomes hot or selected.


TIP: Use the DefColors property to set the default colors for new items.

Example

// Make the text white and the background red for the item whose key is "Item1" 
Set_Property(@Window:".OLE_TREE", "OLE.ItemColors[Item1]", "White":@FM:"Red")

See Also

ItemDefColorsColors

  • No labels