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.

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.

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

or:

popupMenu = CreateObject("Exontrol.PopupMenu")
with popupMenu
.HTMLPicture("pic1") = "C:\exontrol\images\colorize.gif"
.Items.Add("Item A").HTMLImage = "pic1"
iShowAtCursor = .ShowAtCursor()
IF ( iShowAtCursor # 0 ) then
?( .Items.item(iShowAtCursor).Caption )
ENDIF
endwith

These two samples are equivalent.