⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 progressbartest.xml

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 XML
字号:
<Application>	<Window caption="Progress Bar Test" width="300" height="200"/>	<Resources>		<Script><![CDATA[function ProgressBarTest() {	var win = application.getWindow();	var pb = new BiProgressBar;	var t = new BiTimer;	var startButton = new BiButton("Pause");	var stopButton = new BiButton("Stop");	pb.setLocation(5, 5);	pb.setRight(5);	//pb.setBottom(5);	win.add(pb);	stopButton.setRight(5);	stopButton.setBottom(5);	stopButton.setWidth(70);	win.add(stopButton);	startButton.setRight(stopButton.getWidth() + 10);	startButton.setBottom(5);	startButton.setWidth(70);	win.add(startButton);	var steps = 100;	var time = 5000;	var interval = time /steps;	pb.setMaximum(steps);	t.setInterval(interval);	t.addEventListener("tick" , function () {		if (pb.getValue() >= steps) {			t.stop();			startButton.setText("Start");			stopButton.setEnabled(false);		}		pb.setValue(pb.getValue() + 1);	});	startButton.addEventListener("action", function () {		if (t.getEnabled()) { // running			t.stop();			startButton.setText("Resume");		}		else {			if (pb.getValue() == pb.getMaximum()) {				pb.setValue(0);			}			t.start();			startButton.setText("Pause");			stopButton.setEnabled(true);		}	});	stopButton.addEventListener("action", function () {		t.stop();		pb.setValue(0)		stopButton.setEnabled(false);		startButton.setText("Start");	});	pb.addEventListener("change", function () {		win.setCaption(pb.getValue());	});	t.start();}ProgressBarTest.main = function () { new ProgressBarTest(); };		]]></Script>	</Resources></Application>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -