?? timertest.xml
字號:
<application> <window caption="Timer Test" width="250" height="100"/> <resources> <script><![CDATA[function TimerTest() { var l = this.label = new BiLabel; l.setLocation(5, 5); application.getWindow().add(l); this.updateText() var t = new BiTimer; t.setInterval(1); t.addEventListener("tick", this.updateText, this); t.start(); var l2 = this.label2 = new BiLabel; l2.setLocation(5, 25); application.getWindow().add(l2); this.updateText2() var t2 = new BiTimer; t2.addEventListener("tick", this.updateText2, this); t2.start();}TimerTest.prototype.updateText = function () { this.label.setText( String( (new Date).valueOf() ) );};TimerTest.prototype.updateText2 = function () { this.label2.setText( String(new Date) );};TimerTest.main = function () { new TimerTest; }; ]]></script> </resources></application>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -