📄 undeterminedprogressbar.xml
字号:
<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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -