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.
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.