📄 xmlresourceparsertest.xml
字号:
<Application xmlns:xhtml="http://www.w3.org/1999/xhtml"> <Window caption="XML Resource Test" width="50%" height="50%" centered="true" resizable="true" fullScreen="false"> <Component left="10" right="10" top="10" bottom="10" border="1 solid ThreeDShadow" backColor="Window"> <!-- BiComponent maps the border string attribute to setBorder --> <Label height="500" font="#f" top="10" left="10" padding="5"> <Font id="f" underline="true"/> XHTML <xhtml:strong>support</xhtml:strong> <p xmlns="http://www.w3.org/1999/xhtml">for<strong>BiLabel</strong></p> </Label> <Label labelFor="#ta" top="5" right="10" width="200"> <!-- this shows how to set complex properties --> <Label.icon> <Image uri="images/folder.open.16.png" width="32" height="32"/> </Label.icon> Label for:</Label> <TextArea id="ta" top="50" right="10" bottom="10" width="200"/> <!-- this is an axample how how to attach inline event handlers it also shows how to get other components from that --> <SplitPane width="400" top="200" bottom="10" left="10" ondividerlocationchanged="this.getComponentById('tt').setText( 'Tool Tip: ' + event.getCurrentTarget().getDividerLocation() )"> <!-- use the #id syntax to reference another component in the document --> <Label text="Label 1" border="1 solid ThreeDShadow" toolTip="#tt"/> <Label text="Label 2" border="1 solid ThreeDShadow" toolTip="#tt" contextMenu="#editMenu"/> </SplitPane> <ToolTip id="tt">Tool Tip</ToolTip> <Menu id="editMenu"> <MenuItem>Cut</MenuItem> <MenuItem>Copy</MenuItem> <MenuItem>Paste</MenuItem> </Menu> <Window caption="Internal Window" top="10" left="10" width="150" height="75"> <MenuBar> <MenuButton text="File" mnemonic="f"> <MenuButton.subMenu> <Menu> <MenuItem text="Exit" mnemonic="x" onaction="application.getWindow().close()"/> </Menu> </MenuButton.subMenu> </MenuButton> <MenuButton text="Edit" mnemonic="e"> <Menu> <MenuItem>Cut</MenuItem> <MenuItem>Copy</MenuItem> <MenuItem>Paste</MenuItem> </Menu> </MenuButton> </MenuBar> <Button left="0" right="0" top="20" bottom="0">Hello</Button> </Window> <Window caption="Internal Window 2" top="50" left="50" width="150" height="75"> <MenuBar> <MenuButton text="File" mnemonic="f"> <MenuButton.subMenu> <Menu> <MenuItem text="Exit" mnemonic="x" onaction="application.getWindow().close()"/> </Menu> </MenuButton.subMenu> </MenuButton> <MenuButton text="Edit" mnemonic="e"> <Menu> <MenuItem>Cut</MenuItem> <MenuItem>Copy</MenuItem> <MenuItem>Paste</MenuItem> </Menu> </MenuButton> </MenuBar> <Button left="0" right="0" top="20" bottom="0">Hello</Button> </Window> </Component> </Window></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -