📄 wizardtest.xml
字号:
<?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(); var l; w.addPage( new BiLabel( "Page 1" ) ); w.addPage( new BiButton( "Page 2" ) ); w.addPage( new BiTextArea( "Page 3" ) ); w.addPage( l = new BiList ); for (var i = 0; i < 100; i++) { l.add( new BiListItem("Item " + i) ); } 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -