property Item.HTMLImage as String
Retrieves or sets a value that indicates the key of the image (HTMLPicture method) to be displayed on the item ( left side ).

TypeDescription
String A String expression that indicates the key of the picture to be displayed on the left side of the caption. 
The HTMLImage property assigns a picture to the left side of the caption. The key of the picture to be displayed must be loaded previously using the HTMLPicture property. The HTMLImage property has effect only if the Image property is -1 ( by default ). Use the Image property to assign an icon from the Images collection to the left side of the caption. Use the FlatImageWidth property to specify the width of the column that displays icons/images/check or radio buttons.

The following VFP samples loads the picture using the HTMLPicture method, and displays it on the left side of the caption using the HTMLImage property.

contextMenu = CreateObject("Exontrol.ContextMenu")
with contextMenu
.HTMLPicture("pic1") = "C:\exontrol\images\colorize.gif"
.Items.ToString = "Item A[himg=pic1]"
iSelect = .Select()
IF ( iSelect # 0 ) then
?( .Items.item(iSelect).Caption )
ENDIF
endwith

or:

contextMenu = CreateObject("Exontrol.ContextMenu")
with contextMenu
.HTMLPicture("pic1") = "C:\exontrol\images\colorize.gif"
.Items.Add("Item A").HTMLImage = "pic1"
iSelect = .Select()
IF ( iSelect # 0 ) then
?( .Items.item(iSelect).Caption )
ENDIF
endwith

These two samples are equivalent.