Global images to appear next to tree items.

Usage

Set_Property(OLECtrlEntID, "OLE.Images", StringValue)

Values

StringValue can be any string meeting the following format requirements:

Syntax: @FM delimited list of images

Default: ""

Remarks

The Images property allows you to load global images to be used by the tree items. Using global images decreases memory usage in scenarios in which many items use the same image. Take advantage of this property by passing a list of images. Each field of this property loads a separate image using the following multivalue structure:

PosNameTypeDescription
<1, 1>KeyTextThe image's unique key
<1, 2>ImageFormatted StringThe path and filename to the image
<1, 3>Transparent ColorFormatted StringThe color to be transparent, if the image does not contain transparency already

Each global image must be assigned a unique key so it can be easily accessed later. Once the global images are loaded, you can utilize them by setting the ItemImage or ImageConditions properties.

For more information on using images, see Item Images tutorial in the Using SRP OLE Tree section.

Example

// Load global images for a tree that groups boys and girls into teams 
Images = "" 
Images<1> = "Boy":@VM:"BMPS\BOY.BMP" 
Images<2> = "Girl":@VM:"BMPS\GIRL.BMP" 
Images<3> = "Blue":@VM:"BMPS\BLUE.PNG" 
Images<4> = "Red":@VM:"BMPS\RED.PNG" 
Images<5> = "Gray":@VM:"BMPS\GRAY.PNG" 
Set_Property(@Window:".OLE_TREE", "OLE.Images", Images)

See Also

GlyphImagesImageConditionsImageEffectsItemImage

  • No labels