📄 bindowstest.xml
字号:
<?xml version="1.0"?><Application autoNameMapping="true"> <Window caption="Bindows Test" width="700" height="550" centered="true"> <Command id="exitCommand"/> <Command id="alignmentCommand"/> <Command id="toolBarCommand" checked="true"/> <Command id="statusBarCommand" checked="true"/> <VBox top="0" left="0" right="0" bottom="0"> <MenuBar> <MenuButton text="File" mnemonic="f"> <Menu> <MenuItem text="New" mnemonic="n"> <Menu> <MenuItem text="Window" mnemonic="w" shortcutText="Ctrl+N"/> <MenuSeparator/> <MenuItem text="Message" mnemonic="m"/> <MenuItem text="Post" mnemonic="p"/> </Menu> </MenuItem> <MenuItem text="Save" mnemonic="s" enabled="false" shortcutText="Ctrl+S"/> <MenuItem text="Save As..." mnemonic="a"/> <MenuItem text="Open..." mnemonic="o" shortcutText="Ctrl+O"/> <MenuSeparator/> <MenuItem text="Print..." mnemonic="p" shortcutText="Ctrl+P"/> <MenuItem text="Print Preview..." mnemonic="v"/> <MenuSeparator/> <MenuItem text="Exit" mnemonic="e" shortcutText="Alt+F4" command="exitCommand"/> </Menu> </MenuButton> <MenuButton text="Edit" mnemonic="e"> <Menu> <MenuItem text="Cut" icon="images/cut.gif" mnemonic="t" shortcutText="Ctrl+X"/> <MenuItem text="Copy" icon="images/copy.gif" mnemonic="c" shortcutText="Ctrl+C"/> <MenuItem text="Paste" icon="images/paste.gif" mnemonic="p" shortcutText="Ctrl+P"/> <MenuSeparator/> <MenuItem text="Select All" mnemonic="s" shortcutText="Ctrl+A"/> </Menu> </MenuButton> <MenuButton text="View" mnemonic="v"> <Menu> <MenuItem text="Toolbars" mnemonic="t"> <Menu> <BiCheckBoxMenuItem text="Standard Buttons" mnemonic="s" command="toolBarCommand"/> </Menu> </MenuItem> <BiCheckBoxMenuItem text="Status Bar" mnemonic="b" command="statusBarCommand"/> <MenuSeparator/> <MenuItem text="Stop" mnemonic="p" enabled="false" shortcutText="Esc"/> <MenuItem text="Refresh" mnemonic="r" shortcutText="F5"/> <MenuSeparator/> <MenuItem text="Text Size" mnemonic="x"> <Menu> <BiRadioGroup id="textSize1"/> <BiRadioButtonMenuItem group="textSize1" text="Largest" mnemonic="g" checked="false"/> <BiRadioButtonMenuItem group="textSize1" text="Larger" mnemonic="l" checked="false"/> <BiRadioButtonMenuItem group="textSize1" text="Medium" mnemonic="m" checked="true"/> <BiRadioButtonMenuItem group="textSize1" text="Smaller" mnemonic="s" checked="false"/> <BiRadioButtonMenuItem group="textSize1" text="Smallest" mnemonic="a" checked="false"/> </Menu> </MenuItem> </Menu> </MenuButton> <MenuButton text="Help" mnemonic="h"> <Menu> <MenuItem text="Content and Index" mnemonic="c"/> <MenuItem text="Tip of the day" mnemonic="d"/> <MenuItem text="Online support" mnemonic="s"/> <MenuItem text="Send feedback" mnemonic="k"/> <MenuSeparator/> <MenuItem text="About" mnemonic="a"/> </Menu> </MenuButton> </MenuBar> <ToolBar id="toolBar"> <ToolBarButton toolTipText="Copy"> <ToolBarButton.icon> <Image uri="images/copy.gif" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> <ToolBarButton toolTipText="Cut"> <ToolBarButton.icon> <Image uri="images/cut.gif" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> <ToolBarButton toolTipText="Paste"> <ToolBarButton.icon> <Image uri="images/paste.gif" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> <ToolBarSeparator/> <ToolBarButton text="Hello"> <ToolBarButton.icon> <Image uri="images/folder.open.16.png" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> <ToolBarButton text="Hello" enabled="false"> <ToolBarButton.icon> <Image uri="images/folder.open.16.png" width="16" height="16"/> </ToolBarButton.icon> </ToolBarButton> <ToolBarSeparator/> <ToolBarToggleButton text="World"> <ToolBarToggleButton.icon> <Image uri="images/folder.open.16.png" width="16" height="16"/> </ToolBarToggleButton.icon> </ToolBarToggleButton> <ToolBarSeparator/> <RadioGroup id="toolbarGroup"/> <ToolBarRadioButton group="toolbarGroup" text="Yes" checked="true"> <ToolBarRadioButton.icon> <Image uri="images/folder.open.16.png" width="16" height="16"/> </ToolBarRadioButton.icon> </ToolBarRadioButton> <ToolBarRadioButton group="toolbarGroup" text="No"> <ToolBarRadioButton.icon> <Image uri="images/folder.open.16.png" width="16" height="16"/> </ToolBarRadioButton.icon> </ToolBarRadioButton> <ToolBarSeparator/> <ToolBarMenuButton text="View"> <ToolBarMenuButton.icon> <Image uri="images/folder.open.16.png" width="16" height="16"/> </ToolBarMenuButton.icon> <Menu> <MenuItem text="Toolbars" mnemonic="t"> <Menu> <BiCheckBoxMenuItem text="Standard Buttons" mnemonic="s" command="toolBarCommand"/> </Menu> </MenuItem> <BiCheckBoxMenuItem text="Status Bar" mnemonic="b" command="statusBarCommand"/> <MenuSeparator/> <MenuItem text="Stop" mnemonic="p" enabled="false" shortcutText="Esc"/> <MenuItem text="Refresh" mnemonic="r" shortcutText="F5"/> <MenuSeparator/> <MenuItem text="Text Size" mnemonic="x"> <Menu> <BiRadioGroup id="textSize2"/> <BiRadioButtonMenuItem group="textSize2" text="Largest" mnemonic="g" checked="false"/> <BiRadioButtonMenuItem group="textSize2" text="Larger" mnemonic="l" checked="false"/> <BiRadioButtonMenuItem group="textSize2" text="Medium" mnemonic="m" checked="true"/> <BiRadioButtonMenuItem group="textSize2" text="Smaller" mnemonic="s" checked="false"/> <BiRadioButtonMenuItem group="textSize2" text="Smallest" mnemonic="a" checked="false"/> </Menu> </MenuItem> </Menu> </ToolBarMenuButton> </ToolBar> <TabPane id="tabPane" VBox.Flex="1" margin="5"> <TabPane.contextMenu> <Menu> <RadioGroup id="alignmentGroup" command="alignmentCommand"/> <RadioButtonMenuItem checked="true" text="Top" group="alignmentGroup" userValue="top"/> <RadioButtonMenuItem text="Bottom" group="alignmentGroup" userValue="bottom"/> <MenuItem text="View" mnemonic="v"> <Menu> <MenuItem text="Toolbars" mnemonic="t"> <Menu> <BiCheckBoxMenuItem text="Standard Buttons" mnemonic="s" command="toolBarCommand"/> </Menu> </MenuItem> <BiCheckBoxMenuItem text="Status Bar" mnemonic="b" command="statusBarCommand"/> <MenuSeparator/> <MenuItem text="Stop" mnemonic="p" shortcutText="Esc"/> <MenuItem text="Refresh" mnemonic="r" shortcutText="F5"/> <MenuSeparator/> <MenuItem text="Text Size" mnemonic="x"> <Menu> <BiRadioGroup id="textSize3"/> <BiRadioButtonMenuItem group="textSize3" text="Largest" mnemonic="g" checked="false"/> <BiRadioButtonMenuItem group="textSize3" text="Larger" mnemonic="l" checked="false"/> <BiRadioButtonMenuItem group="textSize3" text="Medium" mnemonic="m" checked="true"/> <BiRadioButtonMenuItem group="textSize3" text="Smaller" mnemonic="s" checked="false"/> <BiRadioButtonMenuItem group="textSize3" text="Smallest" mnemonic="a" checked="false"/> </Menu> </MenuItem> </Menu> </MenuItem> </Menu> </TabPane.contextMenu> <TabPage text="General"> <VBox left="5" right="5" top="5" bottom="5"> <HBox margin="5" align="center"> <Label Box.flex="1" text="Label:"/> <Label Box.flex="3" text="Some text in a label" tabIndex="1"/> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Image:"/> <Image Box.flex="3" maximumWidth="16" preferredWidth="16" preferredHeight="16" uri="images/infomark.16.png" tabIndex="1"/> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Progress bar 1:"/> <ProgressBar Box.flex="3" value="50"/> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Progress bar 2:"/> <UndeterminedProgressBar Box.flex="3" id="uProgressBar"/> </HBox> <HBox margin="5" align="stretch" Box.flex="1"> <Label Box.flex="1" text="Group box:"/> <GroupBox Box.flex="3" text="Group box" tabIndex="1"> <Label left="10" top="10" text="Some text inside a group box" tabIndex="1"/> </GroupBox> </HBox> </VBox> </TabPage> <TabPage text="Input 1"> <VBox left="5" right="5" top="5" bottom="5"> <HBox margin="5" align="center"> <Label Box.flex="1" text="Check Box:"/> <HBox Box.flex="3" align="left" margin="5"> <CheckBox text="Hello" tabIndex="1" checked="false"/> <CheckBox text="World" tabIndex="1" checked="true" paddingLeft="5"/> </HBox> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Radio Button:"/> <RadioGroup id="radio"/> <HBox Box.flex="3" align="left" margin="5"> <RadioButton group="radio" text="Yes" checked="true"/> <RadioButton group="radio" text="No" paddingLeft="5"/> <RadioButton group="radio" text="Maybe" paddingLeft="5"/> </HBox> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Text Field:" labelFor="textField"/> <TextField Box.flex="3" id="textField" tabIndex="1"/> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Password:" labelFor="passwordField"/> <PasswordField Box.flex="3" id="passwordField" tabIndex="1"/> </HBox> <HBox margin="5" align="stretch" Box.flex="1"> <Label Box.flex="1" text="Text area:" labelFor="textArea"/> <TextArea Box.flex="3" id="textArea" tabIndex="1"/> </HBox> <HBox margin="5" align="stretch" Box.flex="1"> <Label Box.flex="1" text="Rich Edit:"/> <Component Box.flex="3" border="2 inset"> <ToolBar left="0" top="0" right="0" height="22" border="0"> <ToolBarButton id="b1" text="Bold"/> <ToolBarButton id="b2" text="Italic"/> <ToolBarButton id="b3" text="Underline"/> </ToolBar> <RichEdit id="richEdit" left="0" top="22" right="0" bottom="0" tabIndex="1"/> </Component> </HBox> </VBox> </TabPage> <TabPage text="Input 2"> <VBox left="5" right="5" top="5" bottom="5"> <HBox margin="5" align="center"> <Label Box.flex="1" text="Combo Box:"/> <ComboBox Box.flex="3" tabIndex="1"> <ComboBoxItem>Item 0</ComboBoxItem> <ComboBoxItem>Item 1</ComboBoxItem> <ComboBoxItem>Item 2</ComboBoxItem> <ComboBoxItem>Item 3</ComboBoxItem> <ComboBoxItem>Item 4</ComboBoxItem> <ComboBoxItem>Item 5</ComboBoxItem> </ComboBox> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Editable combo box:"/> <ComboBox Box.flex="3" editable="true" tabIndex="1"> <ComboBoxItem>Item 0</ComboBoxItem> <ComboBoxItem>Item 1</ComboBoxItem> <ComboBoxItem>Item 2</ComboBoxItem> <ComboBoxItem>Item 3</ComboBoxItem> <ComboBoxItem>Item 4</ComboBoxItem> <ComboBoxItem>Item 5</ComboBoxItem> </ComboBox> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Spinner:"/> <Spinner Box.flex="3" tabIndex="1"/> </HBox> <HBox margin="5" align="stretch" Box.flex="1"> <Label Box.flex="1" text="Lists:"/> <Component Box.flex="3"> <SplitPane left="0" right="0" top="0" bottom="0" dividerSize="5"> <List multipleSelection="false" tabIndex="1"> <ListItem>Item 0</ListItem> <ListItem>Item 1</ListItem> <ListItem>Item 2</ListItem> <ListItem>Item 3</ListItem> <ListItem>Item 4</ListItem> <ListItem>Item 5</ListItem> </List> <List tabIndex="1"> <ListItem>Item 0</ListItem> <ListItem>Item 1</ListItem> <ListItem>Item 2</ListItem> <ListItem>Item 3</ListItem> <ListItem>Item 4</ListItem> <ListItem>Item 5</ListItem> </List> </SplitPane> </Component> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Horizontal slider:"/> <Slider Box.flex="3" tabIndex="1"/> </HBox> <HBox margin="5" align="stretch" Box.flex="1"> <Label Box.flex="1" text="Vertical slider:"/> <Slider Box.flex="3" orientation="vertical" tabIndex="1"/> </HBox> </VBox> </TabPage> <TabPage text="Date and Time"> <VBox left="5" right="5" top="5" bottom="5"> <HBox margin="5" align="center"> <Label Box.flex="1" text="Date picker:"/> <DatePicker Box.flex="3" tabIndex="1"/> </HBox> <HBox margin="5" align="center"> <Label Box.flex="1" text="Time picker:"/> <TimePicker Box.flex="3" tabIndex="1"/> </HBox> <HBox margin="5" align="stretch" Box.flex="1"> <Label Box.flex="1" text="Calendar:"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -