HotList是一種新型列表框控件,它允許用戶使用HTML以便有一個更好的視覺效果以及在用戶界面(UI)上有更加強大的表現力。有了這種HTML列表框,為什么還要使用枯燥乏味的純文本列表框呢?
The HotList is a new kind of listbox control that allows you to use HTML for a better looking, more functional presentation in your UI. Why use boring text-only listboxes when you can have HTML listboxes instead?
HotList是一種新型列表框控件,它允許用戶使用HTML以便有一個更好的視覺效果以及在用戶界面(UI)上有更加強大的表現力。HotList顯示的是HTML而不是純文本。有了這種HTML列表框,為什么還要使用枯燥乏味的純文本列表框呢?在用戶界面技術中,HotList是一項創新,它允許用戶增加UI的樣式!下面列出了HotList的一些特征:
每個列表項都有自己的HTML.。用戶可以為列表項指定任意有效的HTML,包括字體,背景及文本顏色,圖形,甚至動畫的GIFs及ActiveX控件(實際上,HotList集成了Microsoft WebBrowser控件)。用戶可以在列表項中使用HTML來創建特殊效果。例如,用戶可以在閃爍的圖形中使用動畫的GIFs以吸引注意力。同時用戶也可以使用RES協議將指定的圖形以資源形式保存在EXE或者DLL中,或者通過HSP協議以使用EzStor 文件。
Microsoft Windows 2000的“添加/刪除程序”對話框類似于HotList。下面將比較其與HotList的差別。在用戶程序中,用戶可通過HotList輕松執行與“添加/刪除程序”對話框相同的操作。
HotList使用DHTML來實現列表項的擴展。點擊鏈接既可以跳到超鏈接,打開email通訊,也可以激活用戶程序代碼中的一個事件以便執行。
HotList效仿了Microsoft Word的功能。另外,它使用了DHTML來擴展/壓縮列表項。
Windows“添加/刪除程序”對話框可用HotList實現。用戶可通過點擊列表項來擴展該對象,同時也可通過點擊按鈕或鏈接來激活用戶程序代碼中的一個事件以便執行。
下面是一個簡單的客戶列表,在下表中點擊客戶名就可打開他們的網頁;點擊聯系人姓名就可進行email通訊。

The HotList is a new kind of listbox control that allows you to use HTML for a better looking, more functional presentation in your UI. The HotList displays HTML instead of plain text. Why use boring text-only listboxes when you can have HTML listboxes instead? The HotList is a new invention in user-interface technology that will add style to your UI! Here are some of the features of the HotList :
- Display any HTML text, including graphics.
- Complete control over background and text colors, fonts and effects
- Events for Click, DoubleClick, MouseOver and MouseOut, enabling you to do anything you need to do to customize your listboxes, such as changing the background or text color in the ListItem while it is selected, or even change the HTML for the ListItem.
- You can also pass mouse click events through to your application code by using the window.external.raiseEvent method.
Each ListItem has its own HTML. You can specify any valid HTML for a ListItem, including fonts, background and text color, graphics, even animated GIFs and ActiveX controls (the HotList actually hosts the Microsoft WebBrowser control). You can use HTML in a ListItem to create special effects. For example, you could use animated GIFs for a blinking graphic to draw attention to an item. You can specify graphics stored as a resource in your EXE or DLL using the RES: protocol, or you can use EzStor files with the HSP: protocol.
Microsoft has done a similar thing in Windows 2000 in the "Add/Remove Programs" dialog. Compare the screenshot of that with our HotList boxes below. Now you can do the same thing easily in your own programs with the HotList.
This HotList uses DHTML to implement expanding list items. Clicking on a link can either jump to a hyperlink, open an email message, or fire an event in your program code to action.
This HotList mimics functionality found in Microsoft Word. Again, it uses DHTML to expand/collapse list items.
Windows "Add / Remove Programs Dialog box" implemented in HotList. Clicking on a list item expands the item. Clicking on the buttons or links fires an event in the program code to action.
A simple customer list. Clicking on a customer name opens a webbrowser to their webpage. Clicking on contact name opens an email message.
