

| Type | Description | |||
| Key as String | A String expression that indicates the key of the picture being added or replaced. If the Key property is Empty string, the entire collection of pictures is cleared. | |||
| Variant |
The HTMLPicture specifies the picture being associated to a key. It can be one
of the followings:
If empty, the picture being associated to a key is removed. If the key already exists the new picture is replaced. If the key is not empty, and it doesn't not exist a new picture is added. |
The HTMLPicture property handles a collection of custom size picture being displayed in the HTML captions, using the <img> tags. By default, the HTMLPicture collection is empty. Use the HTMLPicture property to add new pictures to be used in HTML captions. For instance, the HTMLPicture("pic1") = "c:\winnt\zapotec.bmp", loads the zapotec picture and associates the pic1 key to it. Any "<img>pic1</img>" sequence in HTML captions, displays the pic1 picture. On return, the HTMLPicture property retrieves a Picture object ( this implements the IPictureDisp interface ).
The following VB sample shows "Can I displays a custom size picture to panels":With StatusBar1
.BeginUpdate
.VisualAppearance.Add 4,"c:\exontrol\images\border.ebn"
.VisualAppearance.Add 5,"CP:4 1 1 -1 -1"
.BackColorPanels = 83886080
.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
.Format = "1,2,3,4"
.Panel(1).Text = "<img>pic1</img>"
.EndUpdate
End With
The following VB.NET sample shows "Can I displays a custom
size picture to panels":
With AxStatusBar1
.BeginUpdate
.VisualAppearance.Add 4,"c:\exontrol\images\border.ebn"
.VisualAppearance.Add 5,"CP:4 1 1 -1 -1"
.GetOcx().BackColorPanels = &H5000000
.set_HTMLPicture("pic1","c:\exontrol\images\zipdisk.gif")
.Format = "1,2,3,4"
.get_Panel(1).Text = "<img>pic1</img>"
.EndUpdate
End With
The following C++ sample shows "Can I displays a custom
size picture to panels":
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSTATUSBARLib' for the library: 'ExStatusBar 1.0 Control Library' #import "D:\\Exontrol\\ExStatusBar\\project\\Debug\\ExStatusBar.dll" using namespace EXSTATUSBARLib; */ EXSTATUSBARLib::IStatusBarPtr spStatusBar1 = GetDlgItem(IDC_STATUSBAR1)->GetControlUnknown(); spStatusBar1->BeginUpdate(); spStatusBar1->GetVisualAppearance()->Add(4,"c:\\exontrol\\images\\border.ebn"); spStatusBar1->GetVisualAppearance()->Add(5,"CP:4 1 1 -1 -1"); spStatusBar1->PutBackColorPanels(83886080); spStatusBar1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spStatusBar1->PutFormat(L"1,2,3,4"); spStatusBar1->GetPanel(long(1))->PutText(L"<img>pic1</img>"); spStatusBar1->EndUpdate();The following C# sample shows "Can I displays a custom size picture to panels":
axStatusBar1.BeginUpdate();
axStatusBar1.VisualAppearance.Add(4,"c:\\exontrol\\images\\border.ebn");
axStatusBar1.VisualAppearance.Add(5,"CP:4 1 1 -1 -1");
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColorPanels = 0x5000000;
axStatusBar1.set_HTMLPicture("pic1","c:\\exontrol\\images\\zipdisk.gif");
axStatusBar1.Format = "1,2,3,4";
axStatusBar1.get_Panel(1).Text = "<img>pic1</img>";
axStatusBar1.EndUpdate();
The following VFP sample shows "Can I displays a custom
size picture to panels":
with thisform.StatusBar1
.BeginUpdate
.VisualAppearance.Add(4,"c:\exontrol\images\border.ebn")
.VisualAppearance.Add(5,"CP:4 1 1 -1 -1")
.BackColorPanels = 83886080
.HTMLPicture("pic1") = "c:\exontrol\images\zipdisk.gif"
.Format = "1,2,3,4"
.Panel(1).Text = "<img>pic1</img>"
.EndUpdate
endwith