wizardtest.xml

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

XML
60
字号
<?xml version="1.0" encoding="UTF-8"?><Application>	<Window caption="Wizard Test" width="800" height="600">		<Button left="10" top="10" id="b">New Wizard</Button>		<Wizard visible="true" caption="Markup Generated"			onfinish="alert('XML Finish')"			oncancel="alert('XML Cancel')">			<Slider/>			<Component>				<ComboBox>					<ComboBoxItem>Item 1</ComboBoxItem>					<ComboBoxItem selected="true">Item 2</ComboBoxItem>				</ComboBox>			</Component>		</Wizard>	</Window>	<Resources>		<Script><![CDATA[function WizardTest() {	var b = application.getComponentById( "b" );	b.addEventListener( "action", this.newWizard, this );}WizardTest.main = function () { new WizardTest; };WizardTest.prototype.newWizard = function (){	var w = new BiWizard( "Wizard" );	var cp = w.getContentPane();	w.addPage( new BiLabel( "Page 1" ) );	w.addPage( new BiButton( "Page 2" ) );	w.addPage( new BiTextArea( "Page 3" ) );	w.addPage( new BiLabel( "Page 4" ) );	w.addEventListener( "finish", function ( e ) {		alert( "Finish" );		// w.close();	});	w.addEventListener( "cancel", function ( e ) {		alert( "Cancel" );		// w.close();	});	w.setVisible( true );	//w.setSelectedIndex( 0 );};		]]></Script>	</Resources></Application>

⌨️ 快捷键说明

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