?? listtest3.xml
字號:
<?xml version="1.0"?><!-- This is a test for extending the list to make it look more like the outlook bar--><application> <window caption="List Test" width="200" height="400"/> <resources> <script><![CDATA[function ListTest3() { var win = application.getWindow(); var l = new OutlookList; l.setLocation(5,5) l.setRight(5); l.setBottom(5); win.add(l); for (var i = 0; i < 10; i++) l.add( new OutlookListItem( "Item " +i) ); alert( document.body.xml )}ListTest3.main = function () { new ListTest3; };function OutlookList() { BiList.call(this); this.setBackColor("ThreeDShadow"); this.setMultipleSelection(false);}OutlookList.prototype = new BiList;function OutlookListItem(sText, oIcon) { BiListItem.call(this, sText); this.setIconPosition("top"); this.setIcon(oIcon || this._defaultIcon); this.setAlign("center"); this.setBorder(this._normalBorder); this.setPadding(5); this.setForeColor("white"); this.addEventListener("mouseover", this._onMouseOver); this.addEventListener("mouseout", this._onMouseOut);}var _p = OutlookListItem.prototype = new BiListItem;_p._overBorder = new BiBorder;_p._overBorder.setLeft(1, "solid", "ThreeDHighlight");_p._overBorder.setTop(1, "solid", "ThreeDHighlight");_p._overBorder.setRight(1, "solid", "ThreeDDarkShadow");_p._overBorder.setBottom(1, "solid", "ThreeDDarkShadow");_p._normalBorder = new BiBorder(1, "solid", "ThreeDShadow");_p._defaultIcon = new BiImage( "images/folder.open.32.png", 32, 32 );_p._onMouseOver = function (e) { this.setBorder( this._overBorder );};_p._onMouseOut = function (e) { this.setBorder( this._normalBorder );};_p._setSelected = function (b) { this.setForeColor( b ? "HighlightText" : "white"); BiListItem.prototype._setSelected.call(this, b);}; ]]></script> </resources></application>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -