<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="属性列表.xslt"?>
<!-- 如有遗漏,欢迎补充:qdtroy(qdtroy@qq.com) -->
<!-- 落魄书生 53751267@qq.com
1, Attribute节点增加value属性, 标注取值范围
例如
STRING类型:
<Attribute name="itemalign" default="center" type="STRING" value="left、right、center" comment=""/>
ATTRIBUTELIST:
<Attribute name="value" default="" type="ATTRIBUTELIST" value="类名" />
INT类型(最小值,最大值):
<Attribute name="alpha" default="" type="ATTRIBUTELIST" value="0,255" /> //表示alpha取值范围是:0 ~ 255
2, 图片节点的type属性, 改为IMAGE. 否则程序不能识别为图片属性.
例如 <Attribute name="bkimage" default="" type="IMAGE" comment=""/>
3, 编辑软件工具箱列出的控件, parent必须是Control, 祖宗是Control也可以.
可以在文档中添加控件和属性. 要遵循现有的规则.
4, Default节点多了一个属性类型ATTRIBUTELIST
<Default>
<Attribute name="name" default="" type="STRING" comment="控件名称"/>
<Attribute name="shared" default="false" type="BOOL" comment="是否共享"/>
<Attribute name="value" default="" type="ATTRIBUTELIST" comment="控件默认参数"/>
</Default>
-->
<Controls>
<Window parent="">
<Attribute name="size" default="0,0" type="SIZE" comment="窗口的初始化大小,如(800,600)" />
<Attribute name="sizebox" default="0,0,0,0" type="RECT" comment="窗口可拖动改变窗口大小的边距,如(4,4,6,6)" />
<Attribute name="caption" default="0,0,0,0" type="RECT" comment="窗口可拖动的标题栏大小的边距,最后一个参数是指离上边框的距离,如(0,0,0,28)" />
<Attribute name="roundcorner" default="0,0" type="SIZE" comment="窗口圆角大小,如(4,4)" />
<Attribute name="mininfo" default="0,0" type="SIZE" comment="窗口最小大小,如(320,240)" />
<Attribute name="maxinfo" default="0,0" type="SIZE" comment="窗口最大大小,如(1600,1200)" />
<Attribute name="showdirty" default="false" type="BOOL" comment="ShowUpdateRect显示更新区域" />
<Attribute name="alpha" default="255" type="INT" comment="窗口的alpha值(0-255),如(100)" />
<Attribute name="layeredopacity" default="255" type="INT" comment="分层不透明的 值(0-255)" />
<Attribute name="bktrans" default="false" type="BOOL" comment="窗口是否使用静态透明背景,如(false)" />
<Attribute name="layeredimage" default="" type="IMAGE" comment="静态透明背景图片,如(false)" />
<Attribute name="disabledfontcolor" default="0xFFA7A6AA" type="DWORD" comment="默认的disabled字体颜色,如(0xFFA7A6AA)" />
<Attribute name="defaultfontcolor" default="0xFF000000" type="DWORD" comment="默认的字体颜色,如(0xFF000000)" />
<Attribute name="linkfontcolor" default="0xFF0000FF" type="DWORD" comment="默认的link字体颜色,如(0xFF0000FF)" />
<Attribute name="linkhoverfontcolor" default="0xFFD3215F" type="DWORD" comment="默认的linkhoverfont字体颜色,如(0xFFD3215F)" />
<Attribute name="selectedcolor" default="0xFFBAE4FF" type="DWORD" comment="默认的selected字体颜色,如(0xFFBAE4FF)" />
<Attribute name="showshadow" default="false" type="BOOL" comment="是否启用窗体阴影" />
<Attribute name="shadowimage" default="" type="IMAGE" comment="阴影图片,使用此属性后自动屏蔽算法阴影(不支持source等属性设置)" />
<Attribute name="shadowcorner" default="0,0,0,0" type="RECT" comment="图片阴影的九宫格描述" />
<Attribute name="shadowsize" default="0" type="INT" comment="算法阴影的宽度(-20到20)" />
<Attribute name="shadowsharpness" default="255" type="INT" comment="算法阴影的锐度" />
<Attribute name="shadowdarkness" default="255" type="INT" comment="算法阴影的深度(相当于透明度)" />
<Attribute name="shadowposition" default="0,0" type="SIZE" comment="算法阴影的偏移量" />
<Attribute name="shadowcolor" default="0x000000" type="DWORD" comment="算法阴影的颜色,RGB格式,不支持透明度,使用shadowdarkness设置透明度" />
<Attribute name="renderengine" default="gdi" type="STRING" value="gdi,gdiplus" comment="全局渲染引擎,默认为gdi。" />
<Attribute name="gdiplustext" default="false" type="BOOL" comment="gdi模式时是否用gdi+渲染文字(抗锯齿效果更好,默认不开启,但是效率低)" />
<Attribute name="textrenderinghint" default="0" type="INT" comment="gdi+渲染文字提示(0-5),字体大的时候可以设置为4" />
<Attribute name="tooltiphovertime" default="400" type="INT" comment="tooltip延迟时间" />
<Attribute name="forcehsl" default="false" type="BOOL" comment="强制所有控件和图片启用hsl模式,否则是需要单独设置的。" />
<Attribute name="hsl" default="180,100,100" type="HSL" comment="H=色相(0~360)、S=饱和度(0~200)、L=亮度(0~200)" />
</Window>
<Include>
<Attribute name="source" default="" type="STRING" comment="XML布局文件" />
<Attribute name="count" default="" type="INT" comment="嵌入的次数" />
</Include>
<ChildLayout parent="Container" comment="子窗体xml布局" >
<Attribute name="xmlfile" default="" type="STRING" comment="子窗体XML布局文件" />
</ChildLayout>
<Control parent="" notifies="setfocus killfocus timer menu windowinit(root)" comment="基础控件" >
<Attribute name="name" default="" type="STRING" comment="控件名字,如(testbtn)" />
<Attribute name="pos" default="0,0,0,0" type="RECT" comment="位置,如果为float控件则指定位置和大小,否则只指定大小,如(0,0,100,100)" />
<Attribute name="width" default="0" type="INT" comment="控件预设的宽度,如(100)" />
<Attribute name="height" default="0" type="INT" comment="控件预设的高度,如(30)" />
<Attribute name="widthpercent" default="0" type="INT" value="0,100" comment="设为父控件的百分比宽度,范围0~100。" />
<Attribute name="heightpercent" default="0" type="INT" value="0,100" comment="设为父控件的百分比高度,范围0~100。" />
<Attribute name="float" default="false" type="BOOL" comment="是否使用绝对定位,如(true)" />
<Attribute name="floatpercent" default="0,0,0,0" type="RECT" comment="绝对定位时自适应比例,0~100。用于兼容旧版。优先级高于floatposition、floatsize。旧版是夹带在float属性中用浮点数表示,这里改为设置整数。" />
<Attribute name="floatalign" default="left" type="STRING" value="left,right,center" comment="用于控制float控件先对于父控件的对齐方式(left\center\right)" />
<Attribute name="floatvalign" default="top" type="STRING" value="top,bottom,vcenter" comment="用于控制float控件先对于父控件的对齐方式(top\vcenter\bottom)" />
<Attribute name="floatposition" default="0,0" type="POINT" value="0,100" comment="绝对定位时,相对父控件的左上角百分比位置, 范围0~100。" />
<Attribute name="autocalcwidth" default="false" type="BOOL" comment="根据子控件或者文本等等自动计算宽度" />
<Attribute name="autocalcheight" default="false" type="BOOL" comment="根据子控件或者文本等等自动计算高度" />
<Attribute name="padding" default="0,0,0,0" type="RECT" comment="外边距,如(2,2,2,2)" />
<Attribute name="gradient" default="" type="STRING" value="hor" comment="梯度" />
<Attribute name="bkcolor" default="0x00000000" type="DWORD" comment="背景颜色,如(0xFFFF0000)" />
<Attribute name="bkcolor2" default="0x00000000" type="DWORD" comment="背景渐变色2,和bkcolor配合使用,如(0xFFFFFF00)" />
<Attribute name="bkcolor3" default="0x00000000" type="DWORD" comment="背景渐变色3,和bkcolor、bkcolor2配合使用,如(0xFFFF00FF)" />
<Attribute name="hotbkcolor" default="0x00000000" type="DWORD" comment="鼠标悬浮背景颜色,如(0xFFFF00FF)" />
<Attribute name="focusbkcolor" default="0x00000000" type="DWORD" co
没有合适的资源?快使用搜索试试~ 我知道了~
duiLibEditor
共158个文件
png:92个
lng:14个
xml:14个
需积分: 0 1 下载量 148 浏览量
2022-06-26
20:39:34
上传
评论
收藏 9.41MB ZIP 举报
温馨提示
duilib界面设计编辑器
资源详情
资源评论
资源推荐
收起资源包目录
duiLibEditor (158个子文件)
tutorial_script.as 3KB
script.as 343B
scrollbar.bmp 37KB
scrollbar.bmp 20KB
bmp.bmp 10KB
00192[32x32x8BPP].bmp 3KB
SciLexer64.dll 1.48MB
DuiScript.dll 1.35MB
DuiLib.dll 1.23MB
SciLexer.dll 1.21MB
DuiPlugins.dll 656KB
project.dui 189B
DuiEditor_a.exe 968KB
DuiPreviewer_a.exe 112KB
loading.gif 19KB
ToastLoading.gif 5KB
loading.gif 3KB
Warning.ico 5KB
Information.ico 5KB
Success.ico 5KB
Question.ico 5KB
Hand.ico 5KB
ico.ico 2KB
0.jpg 173KB
2.jpg 148KB
5.jpg 85KB
6.jpg 60KB
4.jpg 30KB
1.jpg 30KB
3.jpg 19KB
ico.jpg 1KB
MainFrame.lng 3KB
MainFrame.lng 3KB
MainFrame.lng 3KB
MainFrame.lng 3KB
NormalControl.lng 1KB
NormalControl.lng 1KB
NormalControl.lng 1KB
NormalControl.lng 1KB
Menu.lng 498B
Menu.lng 498B
Menu.lng 498B
StringTable.lng 103B
StringTable.lng 103B
StringTable.lng 103B
DuiEditor_a.pdb 11.4MB
DuiPreviewer_a.pdb 7.18MB
6.png 186KB
combo.png 46KB
menu_check.png 42KB
menu_expand.png 40KB
delico.png 21KB
addico.png 21KB
edtico.png 21KB
leftjt01.png 21KB
leftjt02.png 21KB
icon0.png 21KB
MenuIcon.png 19KB
check-select.png 17KB
Warning.png 15KB
ToastP2p.png 15KB
MsgBxBk_New.png 15KB
windowBkg.png 14KB
list_header_bg.png 13KB
list_header_hot.png 13KB
list_header_pushed.png 13KB
list_header_sep.png 13KB
toolbar_hover.png 5KB
scrollbar2.png 5KB
tabbar_normal.png 4KB
sys_dlg_close.png 4KB
toolbar_pushed.png 4KB
tabbar_hover.png 4KB
tabbar_pushed.png 4KB
ToastSVipBg.png 4KB
sys_dlg_restore.png 4KB
sys_dlg_menu.png 4KB
sys_dlg_max.png 4KB
ToastVipBg.png 4KB
sys_dlg_min.png 4KB
menu_bk.png 3KB
menu_bk2.png 3KB
scrollbar.png 3KB
vscrollbar.png 3KB
load_error.png 3KB
expand.png 3KB
img_edit_border_set.png 3KB
toolbar_normal.png 3KB
collapse.png 3KB
check-unselect.png 3KB
btn_sys_setting.png 2KB
btn_wnd_radio.png 2KB
Question.png 2KB
btn_wnd_checkbox.png 2KB
Success.png 2KB
Information.png 2KB
TreeCheckBox.png 2KB
btn_sys_close.png 1KB
PhotoViewer.png 1KB
check.png 1KB
共 158 条
- 1
- 2
weixin_44602405
- 粉丝: 40
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0