📄 commandtest.xml
字号:
<Application xmlns:xhtml="http://www.w3.org/1999/xhtml"> <Window caption="Command Test" width="300" height="210"> <Command id="hello-command" onexecute="alert('hello command')" enabled="false"/> <Command id="check-command"/> <Command id="test-shortcut-command" shortcut="Shift+F3" onexecute="alert('shortcut test')"/> <MenuBar> <MenuButton text="Test"> <Menu> <MenuItem text="Hello" command="hello-command"/> <CheckBoxMenuItem command="check-command" text="Check Box 3"/> <MenuItem command="test-shortcut-command" text="Test Shortcut"/> </Menu> </MenuButton> </MenuBar> <ToolBar top="20" left="0" right="0"> <ToolBarButton text="Hello" command="hello-command"/> <ToolBarToggleButton text="Check Box 4" command="check-command"/> </ToolBar> <Button left="10" top="50" width="75" command="hello-command">Hello</Button> <TextField right="10" top="50" left="90" command="hello-command">Hello</TextField> <CheckBox left="10" top="80" command="check-command">Check Box 1</CheckBox> <CheckBox left="10" top="100" command="check-command">Check Box 2</CheckBox> <Spinner right="10" top="79" width="100" command="hello-command"/> <List right="10" top="108" width="100" height="35"> <ListItem command="hello-command">Hello</ListItem> <ListItem>No command</ListItem> </List> <!-- enable/disabled the commands --> <CheckBox left="10" top="140" onchange="this.getComponentById('hello-command').setEnabled( event.getCurrentTarget().getChecked() )"> hello-command enabled </CheckBox> <CheckBox left="10" top="160" value="true" onchange="this.getComponentById('check-command').setEnabled( event.getCurrentTarget().getChecked() )"> check-command enabled </CheckBox> </Window></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -