groupboxtest.xml

来自「在流览器上仿CS界面的JAVASCRIPT脚本」· XML 代码 · 共 51 行

XML
51
字号
<?xml version="1.0"?><!--	Basic test app to show the group box. This should pick up the look and feel	from the operative system--><application>	<window caption="Group Box Test" width="300" height="300"/>	<resources>		<script><![CDATA[function GroupBoxTest() {	var win = application.getWindow();	var gb = new BiGroupBox("Hello World");	gb.setLocation(5,5);	gb.setRight(5);	gb.setBottom(5);	win.add(gb);	var gbt = gb.getGroupBoxTitle()	gbt.setIcon( new BiImage("images/folder.open.16.png") );	gb.setTitlePosition("right");	gbt.setToolTip(new BiToolTip("Click to change the titlePosition"));	gbt.setCursor("pointer");	var l = new BiLabel("Label added to the group box")	//l.setTop(10);	 // this behaves strangely	l.setPadding(3);	gb.add(l);	this._groupBox = gb;	gbt.addEventListener("click", function () {		gbt.setTitlePosition(			gbt.getTitlePosition() == "right" ? "left" : "right"		);	});}GroupBoxTest.main = function () { new GroupBoxTest(); };		]]></script>	</resources></application>

⌨️ 快捷键说明

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