An item's image.

Usage

Set_Property(OLECtrlEntID, "OLE.ItemImage[key]", StringValue)

Values

StringValue can be any string meeting the following format requirements:

Syntax: Key to a global image or path to an image file.

Default: ""

Indices

IndexDescription
keyAn item's unique key

Remarks

The ItemImage property establishes the item's image, that is, the icon that appears next to the item's data. You can set this field to an actual image file, or just set it to a key that points to a global image.

 


The easiest way to set images is by using the ImageConditions property. See Item Images for more details.

Example

// Set the Item1 image to the global image whose key is "Employee" 
Set_Property(@Window:".OLE_TREE", "OLE.ItemImage[Item1]", "Employee") 

// Set the Item2 image to a file 
Set_Property(@Window:".OLE_TREE", "OLE.ItemImage[Item2]", "C:\MyImage.png")

See Also

ItemImageConditions

  • No labels