<!-- 在VS2017中,在设置好宽度后,接下来的图片,normalimage要空一个空格,并且不能回车换行,否则显示不了图片-->
<?xml version="1.0" encoding="UTF-8"?>
<Window size="800,600" mininfo="600,400" caption="0,0,0,32" sizebox="4,4,4,4">
<!-- 窗口的初始尺寸(宽800,高600)、窗口的最小尺寸(宽600,高400)、标题栏拖拽区域(高32)、
可拖拽边框大小(这里添加sizebox后就可以拖拽边框调整大小了) -->
<!--添加default结点,双引号换成 " 单引号换成 ' 如果换行,会出异常-->
<Default name="Button" value="height="30" width="60" normalimage="file='SysBtn\ButtonNormal.bmp'" hotimage="file='SysBtn\ButtonHot.bmp'" pushedimage="file='SysBtn\ButtonFocus.bmp'""/>
<VerticalLayout bkcolor="#FFF0F0F0" bkcolor2="#FFAAAAA0">
<!-- 整个窗口的背景色 -->
<!-- 标题栏区 -->
<HorizontalLayout height="32" bkcolor="#FFE6E6DC" bkcolor2="#FFAAAAA0">
<!-- 标题栏背景色 bkcolor、bkcolor2、bkcolor3分别是渐变色的三个值-->
<VerticalLayout /> <!-- 占空位,占据左边所有的空位-->
<VerticalLayout width="87"> <!-- 右边三个控件所占的宽度-->
<Button name="minbtn" tooltip="Min" float="true" pos="0,5,22,24" width="23"
normalimage=" file='SysBtn\MinNormal.bmp' " hotimage=" file='SysBtn\MinFocus.bmp' "
pushedimage=" file='SysBtn\MinFocus.bmp' "/>
<Button name="maxbtn" tooltip="最大化" float="true" pos="22,5,44,24" width="23"
normalimage="file='SysBtn\MaxNormal.bmp' " hotimage=" file='SysBtn\MaxFocus.bmp' "
pushedimage=" file='SysBtn\MaxFocus.bmp' " />
<Button name="restorebtn" visible="false" tooltip="还原" float="true" pos="22,5,44,24" width="23"
normalimage=" file='SysBtn\StoreNormal.bmp' " hotimage=" file='SysBtn\StoreFocus.bmp' "
pushedimage=" file='SysBtn\StoreFocus.bmp' " />
<Button name="closebtn" tooltip="关闭" float="true" pos="44,5,74,24" width="38"
normalimage=" file='SysBtn\CloseNormal.bmp' " hotimage=" file='SysBtn\CloseFocus.bmp' "
pushedimage=" file='SysBtn\CloseFocus.bmp' "/>
</VerticalLayout>
</HorizontalLayout>
<!-- 客户区 -->
<HorizontalLayout>
<Button text="XP" float="true" pos="20,25,0,0" />
<Button text="win7" float="true" pos="20,100,0,0" />
<Button text="百度杀毒" float="true" pos="20,200,0,0"/>
<Button text="立即清理" float="true" pos="20,300,0,0" />
</HorizontalLayout>
<HorizontalLayout height="32" bkcolor="#FF00FFFF">
<Button name="btnHello" text="Hello World"/>
</HorizontalLayout>
</VerticalLayout>
</Window>