An item's color settings.
Usage
Set_Property(OLECtrlEntID, "OLE.ItemColors[key]", Array)
Values
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Text Color | Color | The color of the item's text | WindowText |
<2> | Background | Color Fill | The item's background | Window |
Indices
Index | Description |
---|---|
key | An 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")