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

📄 commandtest2.xml

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 XML
字号:
<Application	xmlns:xhtml="http://www.w3.org/1999/xhtml">	<Window caption="Command Test 2" width="305" height="205">		<Command id="radio-command"			onuservaluechanged="this.getComponentById('status').setText( 'Changed to ' +				event.getTarget().getUserValue() )"			enabled="true"/>		<MenuBar>			<MenuButton text="Test">				<Menu>					<RadioGroup id="mrg" command="radio-command"/>					<RadioButtonMenuItem text="Chocolate" userValue="c" group="mrg"/>					<RadioButtonMenuItem text="Vanilla" userValue="v" group="mrg"/>					<RadioButtonMenuItem text="Strawberry" userValue="s" group="mrg"/>				</Menu>			</MenuButton>		</MenuBar>		<ToolBar top="20" left="0" right="0">			<RadioGroup id="trg" command="radio-command"/>			<ToolBarRadioButton text="Chocolate" userValue="c" group="trg"/>			<ToolBarRadioButton text="Strawberry" userValue="s" group="trg"/>			<ToolBarRadioButton text="Vanilla" userValue="v" group="trg"/>		</ToolBar>		<RadioGroup id="rrg" command="radio-command"/>		<RadioButton left="10" top="50" userValue="v" group="rrg">Vanilla</RadioButton>		<RadioButton left="10" top="70" userValue="s" group="rrg">Strawberry</RadioButton>		<RadioButton left="10" top="90" userValue="c" group="rrg">Chocolate</RadioButton>		<ComboBox left="100" top="50" width="90" command="radio-command">			<ComboBoxItem userValue="c">Chocolate</ComboBoxItem>			<ComboBoxItem userValue="s">Strawberry</ComboBoxItem>			<ComboBoxItem userValue="v">Vanilla</ComboBoxItem>		</ComboBox>		<List left="200" top="50" width="90" height="50" command="radio-command">			<ListItem userValue="c">Chocolate</ListItem>			<ListItem userValue="s">Strawberry</ListItem>			<ListItem userValue="v">Vanilla</ListItem>		</List>		<!-- enable/disabled the commands -->		<CheckBox left="10" top="130" checked="true"			onchange="this.getComponentById('radio-command').setEnabled( event.getCurrentTarget().getChecked() )">			radio-command enabled		</CheckBox>		<StatusBar>			<StatusBarPanel id="status" left="0" right="0"/>		</StatusBar>	</Window>	<Resources>		<Script>			// we use a script to set the user value for the command once the			// application has loaded. If the user value is set in the markup			// the different components will not find items that match that			// value			function CommandTest2() {				var command = application.getComponentById( "radio-command" );				command.setUserValue( "c" );			}			CommandTest2.main = function ()			{				new CommandTest2;			};		</Script>	</Resources></Application>

⌨️ 快捷键说明

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