Duilib的简单使用(八、DuiEditor的使用(编写360xml文件三))

一、前言

在Duilib的简单使用(一、duilib demo)中我们介绍了利用duilib简单的构造一个项目
在Duilib的简单使用(二、xml实现界面与业务分离)中我们介绍了XML在duilib中的使用
在Duilib的简单使用(三、界面逻辑交互)中我们已经知道如何简单的进行界面的交互
在Duilib的简单使用(四、换肤)中,我们提了一下Duilib强大的一键换肤功能。
在Duilib的简单使用(五、DuiDesigner/DuiEditor的下载编译)中,我们介绍了DuiEditor的下载编译
在Duilib的简单使用(六、DuiEditor的使用(编写360xml文件))中,我们搞定了标题栏
在Duilib的简单使用(七、DuiEditor的使用(编写360xml文件二))中,我们搞定工具栏

这一篇我们来搞一搞接下来的内容

二、XML编写

2.1 分割线

如图所示,XML增加下面这一行,效果如图所示

<HorizontalLayout height="5" bkcolor="0xff97c0da" bkcolor2="0xffb8dff2"/>

Duilib的简单使用(八、DuiEditor的使用(编写360xml文件三))_第1张图片

2.2 操作选择

新建一个水平布局,再新建一个tab布局
Duilib的简单使用(八、DuiEditor的使用(编写360xml文件三))_第2张图片
在水平布局里,新建8个option,以电脑体检为例

<Option pos="6, 0, 84, 26" float="true" text="电脑体检" name="examine" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab" selected="true"/>

效果如图:
Duilib的简单使用(八、DuiEditor的使用(编写360xml文件三))_第3张图片

2.3 优化

之前写的略有一些问题
比如点击常用,常用按钮会消失,且没有出现选中状态,这是因为

  1. selected=“true” 没有写
  2. 没有添加group
  3. selectedimage没有写
  4. foreimage没有写

正确写法:

<Option pos="10, 0, 75, 62" float="true" align="bottom" name="common" text="常用" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='commmon.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar" selected="true"/>

比如,之前的论坛、求助没有下划线
这是因为text必须是"{u}{a}求助{/a}{/u}"这样子的写法,showhtml才有效

<Button text="{u}{a}求助{/a}{/u}" showhtml="true"/>

三、XML

<?xml version="1.0" encoding="UTF-8"?>
<Window size="800,572">
	<VerticalLayout bkcolor="0xFFd1e8f5" bkcolor2="0xffc6e0f1" bkcolor3="0xff768d9b" bordersize="1">
		<HorizontalLayout height="20" inset="5,0,0,0">
			<HorizontalLayout inset="5,0,0,0" height="16">
				<Control width="16" height="16" bkimage="icon.png" />
				<Text width="100" height="16" text="360安全卫士6.0" textcolor="0xff447aa1" />
			</HorizontalLayout>
			<HorizontalLayout width="227" height="16" inset="5,0,0,0" pos="0,0,227,0">
				<Button text="{u}{a}求助{/a}{/u}" showhtml="true"/>
				<Button text="{u}{a}论坛{/a}{/u}" showhtml="true"/>
				<Button name="menubtn" maxwidth="26" maxheight="17" normalimage="file='sys_dlg_menu.png' source='52,0,78,17'" hotimage="file='sys_dlg_menu.png' source='26,0,52,17'" pushedimage="file='sys_dlg_menu.png' source='0,0,26,17'"/>
				<Button name="minbtn" maxwidth="26" maxheight="17" normalimage="file='sys_dlg_min.png' source='52,0,78,17'" hotimage="file='sys_dlg_min.png' source='26,0,52,17'" pushedimage="file='sys_dlg_min.png' source='0,0,26,17'"/>
				<Button name="maxbtn" maxwidth="26" maxheight="17" normalimage="file='sys_dlg_max.png' source='52,0,78,17'" hotimage="file='sys_dlg_max.png' source='26,0,52,18'" pushedimage="file='sys_dlg_max.png' source='0,0,26,17'"/>
				<Button name="restorebtn" visible="false" maxwidth="26" maxheight="17" normalimage="file='sys_dlg_restore.png' source='52,0,78,17'" hotimage="file='sys_dlg_restore.png' source='26,0,52,17'" pushedimage="file='sys_dlg_restore.png' source='0,0,26,17'" />
				<Button name="closebtn" maxwidth="45" maxheight="17" normalimage="file='sys_dlg_close.png' source='90,0,135,17'" hotimage="file='sys_dlg_close.png' source='45,0,90,17'" pushedimage="file='sys_dlg_close.png' source='0,0,45,17'"/>
      	</HorizontalLayout>
		</HorizontalLayout>
		<HorizontalLayout height="70"  inset="5,0,0,0">
			<HorizontalLayout width="600">
				<Option pos="10, 0, 75, 62" float="true" align="bottom" name="common" text="常用" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='commmon.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar" selected="true"/>
				<Option pos="85, 0, 150, 62" float="true" align="bottom" text="木马防火墙" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='firewall.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
				<Option pos="160, 0, 225, 62" float="true" align="bottom" text="杀毒" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='antivirus.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
				<Option pos="235, 0, 300, 62" float="true" align="bottom" text="网盾" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='networkshield.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
				<Option pos="310, 0, 375, 62" float="true" align="bottom" text="防盗号" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='preventnumber.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
				<Option pos="385, 0, 450, 62" float="true" align="bottom" text="软件管家" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='softwaremanager.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
			</HorizontalLayout>
			<HorizontalLayout childalign="right">
				<Button width="150" height="100" bkimage="logo.png" />
			</HorizontalLayout>
		</HorizontalLayout>
		<HorizontalLayout height="5" bkcolor="0xff97c0da" bkcolor2="0xffb8dff2" />
		<VerticalLayout inset="5,5,5,5">
			<HorizontalLayout height="26" width="700">
				<Option pos="6, 0, 84, 26" float="true" text="电脑体检" name="examine" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab" selected="true"/>
				<Option pos="86, 0, 164, 26" float="true" text="查杀木马" name="trojan" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
				<Option pos="166, 0, 244, 26" float="true" text="清理插件" name="plugins" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
				<Option pos="246, 0, 324, 26" float="true" text="修复漏洞" name="vulnerability" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
				<Option pos="326, 0, 404, 26" float="true" text="清理垃圾" name="rubbish" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
				<Option pos="406, 0, 484, 26" float="true" text="清理痕迹" name="cleanup" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
				<Option pos="486, 0, 564, 26" float="true" text="系统修复" name="fix" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
				<Option pos="566, 0, 644, 26" float="true" text="高级工具" name="tool" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
			</HorizontalLayout>
			<TabLayout bkcolor="0xffffffff">
				<HorizontalLayout>
					
				</HorizontalLayout>
				<HorizontalLayout />
				<HorizontalLayout />
				<HorizontalLayout />
				<HorizontalLayout />
				<HorizontalLayout />
				<HorizontalLayout />
			</TabLayout>
		</VerticalLayout>
		<HorizontalLayout />
	</VerticalLayout>
</Window>

四、运行

Duilib的简单使用(八、DuiEditor的使用(编写360xml文件三))_第4张图片

五、duilib官方xml与运行效果

<?xml version="1.0" encoding="utf-8"?>
<Window size="800,572" sizebox="4,4,6,6" roundcorner="5,5" caption="0,0,0,90" mininfo="800,570">
  <Font id="0" name="宋体" size="13" bold="true" />
  <Font id="1" name="宋体" size="12" bold="true" />
  <Font id="2" name="宋体" size="12" />
  <Font id="3" name="宋体" size="14" bold="true" />
  <Font id="4" name="宋体" size="22" bold="true" italic="true"/>
  <Font id="5" name="宋体" size="12" />
  <Default name="VScrollBar" value="button1normalimage="file='scrollbar.bmp' source='0,90,16,106' mask='#FFFF00FF'" button1hotimage="file='scrollbar.bmp' source='18,90,34,106' mask='#FFFF00FF'" button1pushedimage="file='scrollbar.bmp' source='36,90,52,106' mask='#FFFF00FF'" button1disabledimage="file='scrollbar.bmp' source='54,90,70,106' mask='#FFFF00FF'" button2normalimage="file='scrollbar.bmp' source='0,108,16,124' mask='#FFFF00FF'" button2hotimage="file='scrollbar.bmp' source='18,108,34,124' mask='#FFFF00FF'" button2pushedimage="file='scrollbar.bmp' source='36,108,52,124' mask='#FFFF00FF'" button2disabledimage="file='scrollbar.bmp' source='54,108,70,124' mask='#FFFF00FF'" thumbnormalimage="file='scrollbar.bmp' source='0,126,16,142' corner='2,2,2,2' mask='#FFFF00FF'" thumbhotimage="file='scrollbar.bmp' source='18,126,34,142' corner='2,2,2,2' mask='#FFFF00FF'" thumbpushedimage="file='scrollbar.bmp' source='36,126,52,142' corner='2,2,2,2' mask='#FFFF00FF'" thumbdisabledimage="file='scrollbar.bmp' source='54,126,70,142' corner='2,2,2,2' mask='#FFFF00FF'" railnormalimage="file='scrollbar.bmp' source='0,144,16,160' corner='2,2,2,2' mask='#FFFF00FF'" railhotimage="file='scrollbar.bmp' source='18,144,34,160' corner='2,2,2,2' mask='#FFFF00FF'" railpushedimage="file='scrollbar.bmp' source='36,144,52,160' corner='2,2,2,2' mask='#FFFF00FF'" raildisabledimage="file='scrollbar.bmp' source='54,144,70,160' corner='2,2,2,2' mask='#FFFF00FF'" bknormalimage="file='scrollbar.bmp' source='0,162,16,178' corner='2,2,2,2' mask='#FFFF00FF'" bkhotimage="file='scrollbar.bmp' source='18,162,34,178' corner='2,2,2,2' mask='#FFFF00FF'" bkpushedimage="file='scrollbar.bmp' source='36,162,52,178' corner='2,2,2,2' mask='#FFFF00FF'" bkdisabledimage="file='scrollbar.bmp' source='54,162,70,178' corner='2,2,2,2' mask='#FFFF00FF'" " />
  <Default name="HScrollBar" value="button1normalimage="file='scrollbar.bmp' source='0,0,16,16' mask='#FFFF00FF'" button1hotimage="file='scrollbar.bmp' source='18,0,34,16' mask='#FFFF00FF'" button1pushedimage="file='scrollbar.bmp' source='36,0,52,16' mask='#FFFF00FF'" button1disabledimage="file='scrollbar.bmp' source='54,0,70,16' mask='#FFFF00FF'" button2normalimage="file='scrollbar.bmp' source='0,18,16,34' mask='#FFFF00FF'" button2hotimage="file='scrollbar.bmp' source='18,18,34,34' mask='#FFFF00FF'" button2pushedimage="file='scrollbar.bmp' source='36,18,52,34' mask='#FFFF00FF'" button2disabledimage="file='scrollbar.bmp' source='54,18,70,34' mask='#FFFF00FF'" thumbnormalimage="file='scrollbar.bmp' source='0,36,16,52' corner='2,2,2,2' mask='#FFFF00FF'" thumbhotimage="file='scrollbar.bmp' source='18,36,34,52' corner='2,2,2,2' mask='#FFFF00FF'" thumbpushedimage="file='scrollbar.bmp' source='36,36,52,52' corner='2,2,2,2' mask='#FFFF00FF'" thumbdisabledimage="file='scrollbar.bmp' source='54,36,70,52' corner='2,2,2,2' mask='#FFFF00FF'" railnormalimage="file='scrollbar.bmp' source='0,54,16,70' corner='2,2,2,2' mask='#FFFF00FF'" railhotimage="file='scrollbar.bmp' source='18,54,34,70' corner='2,2,2,2' mask='#FFFF00FF'" railpushedimage="file='scrollbar.bmp' source='36,54,52,70' corner='2,2,2,2' mask='#FFFF00FF'" raildisabledimage="file='scrollbar.bmp' source='54,54,70,70' corner='2,2,2,2' mask='#FFFF00FF'" bknormalimage="file='scrollbar.bmp' source='0,72,16,88' corner='2,2,2,2' mask='#FFFF00FF'" bkhotimage="file='scrollbar.bmp' source='18,72,34,88' corner='2,2,2,2' mask='#FFFF00FF'" bkpushedimage="file='scrollbar.bmp' source='36,72,52,88' corner='2,2,2,2' mask='#FFFF00FF'" bkdisabledimage="file='scrollbar.bmp' source='54,72,70,88' corner='2,2,2,2' mask='#FFFF00FF'" " />
  <VerticalLayout bkcolor="#FFD1E8F5" bkcolor2="#FFC6E0F1" bordercolor="#FF768D9B" bordersize="1" borderround="5,5" inset="1,0,1,0">
    <HorizontalLayout height="24">
      <HorizontalLayout>
        <Container width="22" height="22" bkimage="file='icon.png' source='0,0,16,16' dest='5,4,21,20' " />
        <Text text="360安全卫士7.3" pos="22, 5, 200, 24" float="true" textcolor="#FF447AA1" font="0" />
      </HorizontalLayout>
      <HorizontalLayout width="188" inset="0,1,0,0">
        <Button text="{u}{a}求助{/a}{/u}" showhtml="true"/>
        <Button text="{u}{a}论坛{/a}{/u}" showhtml="true"/>
        <Button name="menubtn" maxwidth="26" maxheight="17" normalimage="file='sys_dlg_menu.png' source='52,0,78,17'" hotimage="file='sys_dlg_menu.png' source='26,0,52,17'" pushedimage="file='sys_dlg_menu.png' source='0,0,26,17'"/>
        <Button name="minbtn" maxwidth="26" maxheight="17" normalimage="file='sys_dlg_min.png' source='52,0,78,17'" hotimage="file='sys_dlg_min.png' source='26,0,52,17'" pushedimage="file='sys_dlg_min.png' source='0,0,26,17'"/>
        <Button name="maxbtn" maxwidth="26" maxheight="17" normalimage="file='sys_dlg_max.png' source='52,0,78,17'" hotimage="file='sys_dlg_max.png' source='26,0,52,18'" pushedimage="file='sys_dlg_max.png' source='0,0,26,17'"/>
        <Button name="restorebtn" visible="false" maxwidth="26" maxheight="17" normalimage="file='sys_dlg_restore.png' source='52,0,78,17'" hotimage="file='sys_dlg_restore.png' source='26,0,52,17'" pushedimage="file='sys_dlg_restore.png' source='0,0,26,17'" />
        <Button name="closebtn" maxwidth="45" maxheight="17" normalimage="file='sys_dlg_close.png' source='90,0,135,17'" hotimage="file='sys_dlg_close.png' source='45,0,90,17'" pushedimage="file='sys_dlg_close.png' source='0,0,45,17'"/>
      </HorizontalLayout>
    </HorizontalLayout>
    <HorizontalLayout height="67">
      <HorizontalLayout inset="8,5,0,0">
        <Option pos="10, 0, 75, 62" float="true" align="bottom" name="common" text="常用" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='commmon.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar" selected="true"/>
        <Option pos="85, 0, 150, 62" float="true" align="bottom" text="木马防火墙" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='firewall.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
        <Option pos="160, 0, 225, 62" float="true" align="bottom" text="杀毒" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='antivirus.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
        <Option pos="235, 0, 300, 62" float="true" align="bottom" text="网盾" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='networkshield.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
        <Option pos="310, 0, 375, 62" float="true" align="bottom" text="防盗号" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='preventnumber.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
        <Option pos="385, 0, 450, 62" float="true" align="bottom" text="软件管家" textcolor="#FF386382" font="1" textpadding="0,40,0,2" foreimage="file='softwaremanager.png' dest='10,5,50,45'" normalimage="toolbar_normal.png" hotimage="toolbar_hover.png" pushedimage="toolbar_pushed.png" selectedimage="toolbar_pushed.png" group="quickbar"/>
      </HorizontalLayout>
      <HorizontalLayout width="150" inset="0,5,1,0">
        <Button bkimage="file='logo.png'"/>
      </HorizontalLayout>
    </HorizontalLayout>
    <HorizontalLayout height="5">
      <Control width="1"/>
      <HorizontalLayout bkcolor="#FF97C0DA" bkcolor2="#FFB8DFF2"></HorizontalLayout>
      <Control width="1"/>
    </HorizontalLayout>
	<Control height="25" bkcolor="#FFB8DFF2"/>
    <HorizontalLayout>
      <Control width="5"/>
      <HorizontalLayout bkcolor="#FFFFFFFF" bordercolor="#FF768D9B" bordersize="1">
        <TabLayout name="switch">
          <HorizontalLayout>

          </HorizontalLayout>
          <HorizontalLayout>
            <Text text="查杀木马" pos="335, 180, 600, 300" relativepos="50,50,0,0"  float="true" font="4" />
          </HorizontalLayout>
          <HorizontalLayout>
            <Text text="清理插件" pos="335, 180, 600, 300" relativepos="50,50,0,0"  float="true" font="4" />
          </HorizontalLayout>
          <HorizontalLayout>
            <Text text="修复漏洞" pos="335, 180, 600, 300" relativepos="50,50,0,0"  float="true" font="4" />
          </HorizontalLayout>
          <HorizontalLayout>
            <Text text="清理垃圾" pos="335, 180, 600, 300" relativepos="50,50,0,0"  float="true" font="4" />
          </HorizontalLayout>
          <HorizontalLayout>
            <Text text="清理痕迹" pos="335, 180, 600, 300" relativepos="50,50,0,0"  float="true" font="4" />
          </HorizontalLayout>
          <HorizontalLayout>
            <Text text="系统修复" pos="335, 180, 600, 300" relativepos="50,50,0,0"  float="true" font="4" />
          </HorizontalLayout>
          <HorizontalLayout>
            <Text text="高级工具" pos="335, 180, 600, 300" relativepos="50,50,0,0"  float="true" font="4" />
          </HorizontalLayout>
        </TabLayout>
      </HorizontalLayout>
      <Control width="5"/>
    </HorizontalLayout>
    <HorizontalLayout height="24">
      <Text text="{c #386382}主程序版本:7.3.0.2001{/c}" pos="0, 5, 200, 24" float="true" showhtml="true"/>
      <Text text="{c #386382}备用木马库:2010-9-28{/c}" pos="155, 5, 400, 24" float="true" showhtml="true"/>
      <Button text="检查更新" textcolor="#FF337833" pos="305,5,360,18" float="true"/>
      <Control bkimage="cloud.png" pos="550,4,566,20" float="true"/>
      <Text text="{c #386382}已成功连接至360云安全中心{/c}" pos="570, 5, 800, 24" float="true" showhtml="true"/>
    </HorizontalLayout>
    <HorizontalLayout float="true" pos="1,96,799,122">
      <Option pos="6, 0, 84, 26" float="true" text="电脑体检" name="examine" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab" selected="true"/>
      <Option pos="86, 0, 164, 26" float="true" text="查杀木马" name="trojan" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
      <Option pos="166, 0, 244, 26" float="true" text="清理插件" name="plugins" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
      <Option pos="246, 0, 324, 26" float="true" text="修复漏洞" name="vulnerability" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
      <Option pos="326, 0, 404, 26" float="true" text="清理垃圾" name="rubbish" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
      <Option pos="406, 0, 484, 26" float="true" text="清理痕迹" name="cleanup" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
      <Option pos="486, 0, 564, 26" float="true" text="系统修复" name="fix" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
      <Option pos="566, 0, 644, 26" float="true" text="高级工具" name="tool" textcolor="#FF386382" font="2" normalimage="tabbar_normal.png" hotimage="tabbar_hover.png" pushedimage="tabbar_pushed.png" selectedimage="tabbar_pushed.png" group="contenttab"/>
    </HorizontalLayout>
  </VerticalLayout>
</Window>

Duilib的简单使用(八、DuiEditor的使用(编写360xml文件三))_第5张图片

你可能感兴趣的:(C++,Duilib,c++,gui,界面设计,xml)