undeterminedprogressbar.xml
来自「在流览器上仿CS界面的JAVASCRIPT脚本」· XML 代码 · 共 47 行
XML
47 行
<application> <window caption="Progress Bar Test" width="300" height="130"/> <resources> <script><![CDATA[function UndeterminedProgressBar() { var win = application.getWindow(); var pb = new BiUndeterminedProgressBar; var startButton = new BiButton("Pause"); pb.setLocation(5, 5); pb.setRight(5); //pb.setBottom(5); win.add(pb); startButton.setRight(5); startButton.setBottom(5); startButton.setWidth(70); win.add(startButton); startButton.addEventListener("action", function () { if (pb.getStarted()) { // running pb.stop(); startButton.setText("Resume"); } else { pb.start(); startButton.setText("Pause"); } }); pb.addEventListener("change", function () { win.setCaption(pb.getValue()); }); pb.start();}UndeterminedProgressBar.main = function () { new UndeterminedProgressBar(); }; ]]></script> </resources></application>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?