Type | Description | |||
String | A String expression that indicates the key of the picture to be displayed on 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.
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.