forked from redrains/DuiLib_Redrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUiLib扩展后的属性新特性.xml
323 lines (303 loc) · 29.1 KB
/
UiLib扩展后的属性新特性.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="属性列表.xslt"?>
<!-- 以下仅列出对DuiLib扩展后支持的新特性。可能有错漏,欢迎补充。([email protected]) -->
<Controls>
<Window parent="">
<Attribute name="trayiconid" default="" type="UINT" comment="图标资源ID,将显示在托盘"/>
<Attribute name="traytiptext" default="" type="STRING" comment="托盘图标在鼠标闲停时提示的文本,备注:有效长度小于64字节"/>
</Window>
<Include parent="Container" >
<Attribute name="xmlfile" default="" type="STRING" comment="外部XML布局文件"/>
<Attribute name="count" default="1" type="INT" comment="重复创建xmlfile布局的个数"/>
</Include>
<!--动作组定义标识-->
<ActionScript parent="" />
<!--控件属性动作组定义标识-->
<AGroup parent="ActionScript" >
<Attribute name="name" default="" type="STRING" comment="动作样式组名称"/>
<Attribute name="msgtype" default="" type="STRING" comment="动作样式组的触发机制类型 notify 或 event"/>
<Attribute name="msgvalue" default="" type="notify=STRING | event=INT" comment="对应触发机制类型 notify 或 event 的值notify则为字符串,event则为整型"/>
<Attribute name="defaultinterval" default="" type="INT" comment="缺省触发周期"/>
<Attribute name="defaulttimer" default="" type="INT" comment="缺省总周期之和"/>
<Attribute name="defaultautostart" default="" type="BOOL" comment="缺省是否自动触发"/>
<Attribute name="defaultloop" default="" type="BOOL" comment="缺省周期之和到后是否续集循环触发"/>
<Attribute name="defaultreverse" default="" type="BOOL" comment="缺省周期之和到后是否倒序触发"/>
</AGroup>
<!--控件属性动作定义-->
<Property parent="AGroup" >
<Attribute name="name" default="" type="STRING" comment="指定需要动画处理的控件属性名称"/>
<Attribute name="type" default="" type="STRING" comment="指定过度的属性值类型,支持(int,size,rect,color,image.source,image.corner,image.desc,image.fade,image.mask"/>
<Attribute name="startvalue" default="" type="STRING" comment="值的起始值"/>
<Attribute name="endvalue" default="" type="STRING" comment="值的终点值"/>
<Attribute name="interval" default="" type="" comment="若定义了该值且根AGroup定义的缺省值defaultinterval不同,则独立运作。"/>
<Attribute name="timer" default="" type="" comment="若定义了该值且根AGroup定义的缺省值defaulttimer不同,则独立运作。"/>
<Attribute name="autostart" default="" type="" comment="若定义了该值且根AGroup定义的缺省值defaultautostart不同,则独立运作。"/>
<Attribute name="loop" default="" type="" comment="若定义了该值且根AGroup定义的缺省值defaultloop不同,则独立运作。"/>
<Attribute name="reverse" default="" type="" comment="若定义了该值且根AGroup定义的缺省值defaultreverse不同,则独立运作。"/>
</Property>
<!--控件属性样式组定义标识-->
<Styles parent="">
<Attribute name="name" default="" type="STRING" comment="样式模版名称"/>
<Attribute name="default" default="" type="BOOL" comment="是否作为当前默认模版"/>
<Attribute name="inherit" default="" type="STRING" comment="从指定的模版中继承样式"/>
<Attribute name="stylefile" default="" type="STRING" comment="从XML模版中继承"/>
</Styles>
<Style parent="">
<Attribute name="stylename" default="" type="STRING" comment="样式名称"/>
<!--
除stylename属性外可将任意控件属性作为模版属性。
若stylename等于XML的节点元控件元素名,则将作为控件的默认样式:如<Style stylename="Button" bkcolor="#ffffffff" />则所有Button控件的默认背景为#ffffffff
包括控件的name属性,也可定义到样式中。
按控件的具体拥有的属性进行组合。
相同属性名,则为最后个生效。
-->
<Attribute 控件属性名称="控件属性值" default="" type="" comment="定义的控件属性组,控件自身属性将覆盖模版样式属性"/>
</Style>
<EffectsStyles parent="">
<Attribute name="stylefile" default="" type="STRING" comment="外部XML文件加载样式定义"/>
</EffectsStyles>
<EffectsStyle parent="">
<Attribute name="name" default="" type="STRING" comment="定义动画特效的样式名称"/>
<Attribute name="value" default="" type="STRING" comment="定义动画特效的参数"/>
</EffectsStyle>
<Control parent="" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="leftbordersize" default="0" type="INT" comment="左边边框大小,如(1),设置该值大于0,则将忽略bordersize属性的设置"/>
<Attribute name="topbordersize" default="0" type="INT" comment="顶部边框大小,如(1),设置该值大于0,则将忽略bordersize属性的设置"/>
<Attribute name="rightbordersize" default="0" type="INT" comment="右边边框大小,如(1),设置该值大于0,则将忽略bordersize属性的设置"/>
<Attribute name="bottombordersize" default="0" type="INT" comment="底部边框大小,如(1),设置该值大于0,则将忽略bordersize属性的设置"/>
<Attribute name="borderstyle" default="0" type="INT" comment="边框样式的设置,数值范围0-5"/>
<Attribute name="animeffects" default="false" type="BOOL" comment="是否开启动画特效,如(true)"/>
<!--EffectsStyle value 属性说明-->
<!--zoom 整型:缩放设置 0为不缩放 小于0缩小 大于0放大-->
<!--fillingbk 字符串:动画渲染时的背景设置,设置为none或#FFFFFFFF时为保持原背景,否则填充成设置的背景色-->
<!--offsetx 整型:动画X坐标偏移量-->
<!--offsety 整型:动画Y坐标偏移量-->
<!--alpha 整型:动画透明度 -255至255 -->
<!--rotation 浮点:动画旋转角度 -->
<!--needtimer 整型:动画需要时长,单位毫秒建议大于150毫秒 -->
<!--anim 使用简易特效模版,模版特效种类 【zoom+放大】【zoom-缩小】【left2right左到右】【right2left右到左】【top2bottom上到下】【bottom2top下到上】-->
<!--offset 整型:简易特效坐标偏移量 -->
<!--备注 easyeffects 属性设置会覆盖 adveffects属性的设置 -->
<Attribute name="easyeffects" default="" type="STRING" comment="简易的自定义调用的动画特效。(action='' zoom='5' fillingbk='none' offsetx='0' offsety='0' alpha='255' rotation='0.0' needtimer='350' )"/>
<Attribute name="adveffects" default="" type="STRING" comment="自定义调用的动画特效。如(zoom='5' fillingbk='none' offsetx='0' offsety='0' alpha='255' rotation='0.0' needtimer='350' )"/>
<Attribute name="effectstyle" default="" type="STRING" comment="自定义调用的特效样式名称模。"/>
<Attribute name="mouseineffects" default="" type="STRING" comment="鼠标进入控件时的动画特效"/>
<Attribute name="mouseouteffects" default="" type="STRING" comment="鼠标离开控件时的动画特效"/>
<Attribute name="mouseclickeffects" default="" type="STRING" comment="鼠标点击控件时的动画特效(仅Button控件支持该属性)"/>
<Attribute name="mouseinstyle" default="" type="STRING" comment="鼠标进入控件时所调用的的动画特样式"/>
<Attribute name="mouseoutstyle" default="" type="STRING" comment="鼠标离开控件时所调用的的动画特样式"/>
<Attribute name="mouseclickstyle" default="" type="STRING" comment="鼠标点击控件时所调用的的动画特样式(仅Button控件支持该属性)"/>
</Control>
<Label parent="Control" notifies="setfocus killfocus timer menu windowinit(root)">
<!--UiLib 扩展更新的属性-->
<Attribute name="enabledeffect" default="false" type="BOOL" comment="是否使用字体特效,使用下面文字特效属性必须该属性设置为true方有效"/>
<Attribute name="align" default="left" type="STRING" comment="文字横向对齐方式,取值left、center、right"/>
<Attribute name="valign" default="center" type="STRING" comment="文字纵向对齐方式,取值top、center、bottom"/>
<Attribute name="rhaa" default="0" type="STRING" comment="字体质量0-5"/>
<Attribute name="enabledstroke" default="false" type="BOOL" comment="是否使用描边效果"/>
<Attribute name="strokecolor" default="0x00000000" type="STRING" comment="字体描边的颜色"/>
<Attribute name="transstroke" default="255" type="STRING" comment="字体描边的颜色透明度 0-255"/>
<Attribute name="enabledshadow" default="false" type="BOOL" comment="是否使用阴影效果"/>
<Attribute name="gradientangle" default="0" type="INT" comment="渐变色渲染角度"/>
<Attribute name="gradientlength" default="0" type="INT" comment="渐变距离"/>
<Attribute name="textcolor1" default="0x00000000" type="STRING" comment="字体渐变色"/>
<Attribute name="textshadowcolora" default="0xff000000" type="STRING" comment="字体阴影渐变色"/>
<Attribute name="textshadowcolorb" default="0xff000000" type="STRING" comment="字体阴影渐变色"/>
<Attribute name="transshadow" default="100" type="INT" comment="阴影透明度"/>
<Attribute name="transshadow1" default="100" type="INT" comment="阴影透明度"/>
<Attribute name="transtext" default="100" type="INT" comment="字体色彩透明度"/>
<Attribute name="transtext1" default="100" type="INT" comment="字体色彩透明度"/>
</Label>
<!--UiLib 扩展事件 OnSelcetDay 日期选择完成时触发该事件-->
<Button parent="Label" notifies="OnSelcetDay setfocus killfocus timer menu click windowinit(root)">
<!--UiLib 扩展属性-->
<Attribute name="hotbkcolor" default="" type="STRING" comment="鼠标悬浮在按钮上时的按钮背景颜色,如(0xFFFF0000)"/>
<Attribute name="foreimage" default="" type="STRING" comment="最前端图片"/>
<Attribute name="hotforeimage" default="" type="STRING" comment="获得焦点时的最前端状态图片"/>
<Attribute name="bindtablayoutname" default="" type="STRING" comment="绑定TabLayout控件"/>
<Attribute name="bindtabindex" default="" type="INT" comment="点击后将触发绑定TabLayout控件的对应索引号"/>
</Button>
<Option parent="Button" notifies="setfocus killfocus timer menu click selectchanged windowinit(root)">
<!--UiLib 扩展属性-->
<Attribute name="hotbkcolor" default="" type="STRING" comment="鼠标悬浮在按钮上时的背景颜色,如(0xFFFF0000)"/>
<Attribute name="selectedbkcolor" default="" type="STRING" comment="选中时的背景颜色,如(0xFFFF0000)"/>
<Attribute name="selectedhotimage" default="" type="STRING" comment="选中时的鼠标悬浮背景图片"/>
<Attribute name="foreimage" default="" type="STRING" comment="最前端图片,通常用在Icon的贴图"/>
<Attribute name="hotforeimage" default="" type="STRING" comment="获得焦点时的最前端状态图片"/>
<Attribute name="bindtablayoutname" default="" type="STRING" comment="绑定TabLayout控件"/>
<Attribute name="bindtabindex" default="" type="INT" comment="点击后将触发绑定TabLayout控件的对应索引号"/>
</Option>
<!--UiLib 扩展的UI元素对象-->
<CheckBox parent="Option" notifies="setfocus killfocus timer menu click selectchanged windowinit(root)" />
<!--UiLib 扩展的UI元素对象-->
<RadioBox parent="Option" notifies="setfocus killfocus timer menu click selectchanged windowinit(root)" />
<!--Edit UiLib 扩展事件 OnEditTimer OnEditRegex -->
<Edit parent="Label" notifies="setfocus killfocus timer menu return textchanged editTimer editRegex windowinit(root)">
<!--UiLib 扩展属性-->
<Attribute name="disabledbkcolor" default="0xFFF0F0F0" type="STRING" comment="禁用状态背景色"/>
<Attribute name="tipvalue" default="" type="STRING" comment="文本框内提示文字,当文本框text为空时显示并失去焦点时显示"/>
<Attribute name="tipvaluecolor" default="0xFFBAC0C5" type="DWORD" comment="文本框内提示文字的颜色"/>
<Attribute name="enabletimer" default="false" type="DWORD" comment="当焦点在文本框时是否开启定时器,开启后会定时收到OnEditTimer事件,一般用在自动完成功能上,达到定时取值的效果"/>
<Attribute name="timerdelay" default="1000" type="DWORD" comment="enabletimer为true时才属性才有效,设置OnEditTimer事件的触发间隔"/>
<Attribute name="regularcheck" default="" type="STRING" comment="正则规则,在Edit失去焦点时进行正则匹配,匹配时并触发OnEditRegex事件,通过该事件wParam取得匹配成功(IDOK)或失败(IDNO)的状态"/>
<Attribute name="regulartip" default="" type="STRING" comment="匹配失败时的提示信息,为空时不提示"/>
</Edit>
<List parent="VerticalLayout" notifies="headerwidthchanged setfocus killfocus timer menu itemselect windowinit(root)">
<!--UiLib 扩展属性-->
<Attribute name="multipleitem" default="true" type="BOOL" comment="是否允许item多选"/>
<Attribute name="itemcheckimgsize" default="0,0" type="SIZE" comment="Item的复选框图片大小,如(2,2)"/>
<Attribute name="itemiconimgsize" default="0,0" type="SIZE" comment="Item的图标大小,如(2,2)"/>
</List>
<!--ListImageTextElement UiLib 扩展元素 -->
<ListImageTextElement parent="ListLabelElement" notifies="setfocus killfocus timer itemactivate itemclick link windowinit(root)">
<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="padding" default="0,0,0,0" type="RECT" comment="外边距,如(2,2,2,2)"/>
<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="bordercolor" default="0x00000000" type="DWORD" comment="边框颜色,如(0xFF000000)"/>
<Attribute name="focusbordercolor" default="0x00000000" type="DWORD" comment="获得焦点时边框的颜色,如(0xFFFF0000)"/>
<Attribute name="colorhsl" default="false" type="BOOL" comment="本控件的颜色是否随窗口的hsl变化而变化,如(false)"/>
<Attribute name="bordersize" default="1" type="INT" comment="边框大小,如(1)"/>
<Attribute name="borderround" default="0,0" type="SIZE" comment="边框圆角半径,如(2,2)"/>
<Attribute name="bkimage" default="" type="STRING" comment="背景图片,如(bk.bmp或file='aaa.jpg' res='' restype='0' dest='0,0,0,0' source='0,0,0,0' corner='0,0,0,0' mask='#FF0000' fade='255' hole='false' xtiled='false' ytiled='false')"/>
<Attribute name="width" default="0" type="INT" comment="控件预设的宽度,如(100)"/>
<Attribute name="height" default="0" type="INT" comment="控件预设的高度,如(30)"/>
<Attribute name="minwidth" default="0" type="INT" comment="控件的最小宽度,如(100)"/>
<Attribute name="minheight" default="0" type="INT" comment="控件的最小高度,如(30)"/>
<Attribute name="maxwidth" default="9999" type="INT" comment="控件的最大宽度,如(100)"/>
<Attribute name="maxheight" default="9999" type="INT" comment="控件的最大高度,如(30)"/>
<Attribute name="text" default="" type="STRING" comment="显示文本,如(测试文本)"/>
<Attribute name="tooltip" default="" type="STRING" comment="鼠标悬浮提示,如(请在这里输入你的密码)"/>
<Attribute name="userdata" default="" type="STRING" comment="自定义标识"/>
<Attribute name="enabled" default="true" type="BOOL" comment="是否可以响应用户操作,如(true)"/>
<Attribute name="mouse" default="true" type="BOOL" comment="本控件是否可以响应鼠标操作,如(true)"/>
<Attribute name="visible" default="true" type="BOOL" comment="是否可见,如(true)"/>
<Attribute name="float" default="false" type="BOOL" comment="是否使用绝对定位,如(true)"/>
<Attribute name="shortcut" default="" type="CHAR" comment="对应的快捷键,如(P)"/>
<Attribute name="menu" default="false" type="BOOL" comment="是否需要右键菜单,如(true)"/>
<Attribute name="selected" default="false" type="BOOL" comment="是否选中,如(true)" />
</ListImageTextElement>
<RichEdit parent="Container" notifies="setfocus killfocus timer menu return windowinit(root)">
<!--UiLib 扩展属性-->
<Attribute name="disabledbkcolor" default="0xFFF0F0F0" type="STRING" comment="禁用状态背景色"/>
</RichEdit>
<!--UiLib 扩展的UI元素对象-->
<TreeView parent="List" notifies="selectchanged setfocus killfocus timer menu itemselect windowinit(root)">
<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="padding" default="0,0,0,0" type="RECT" comment="外边距,如(2,2,2,2)"/>
<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="bordercolor" default="0x00000000" type="DWORD" comment="边框颜色,如(0xFF000000)"/>
<Attribute name="focusbordercolor" default="0x00000000" type="DWORD" comment="获得焦点时边框的颜色,如(0xFFFF0000)"/>
<Attribute name="colorhsl" default="false" type="BOOL" comment="本控件的颜色是否随窗口的hsl变化而变化,如(false)"/>
<Attribute name="bordersize" default="1" type="INT" comment="边框大小,如(1)"/>
<Attribute name="borderround" default="0,0" type="SIZE" comment="边框圆角半径,如(2,2)"/>
<Attribute name="bkimage" default="" type="STRING" comment="背景图片,如(bk.bmp或file='aaa.jpg' res='' restype='0' dest='0,0,0,0' source='0,0,0,0' corner='0,0,0,0' mask='#FF0000' fade='255' hole='false' xtiled='false' ytiled='false')"/>
<Attribute name="width" default="0" type="INT" comment="控件预设的宽度,如(100)"/>
<Attribute name="height" default="0" type="INT" comment="控件预设的高度,如(30)"/>
<Attribute name="minwidth" default="0" type="INT" comment="控件的最小宽度,如(100)"/>
<Attribute name="minheight" default="0" type="INT" comment="控件的最小高度,如(30)"/>
<Attribute name="maxwidth" default="9999" type="INT" comment="控件的最大宽度,如(100)"/>
<Attribute name="maxheight" default="9999" type="INT" comment="控件的最大高度,如(30)"/>
<Attribute name="text" default="" type="STRING" comment="显示文本,如(测试文本)"/>
<Attribute name="tooltip" default="" type="STRING" comment="鼠标悬浮提示,如(请在这里输入你的密码)"/>
<Attribute name="userdata" default="" type="STRING" comment="自定义标识"/>
<Attribute name="enabled" default="true" type="BOOL" comment="是否可以响应用户操作,如(true)"/>
<Attribute name="mouse" default="true" type="BOOL" comment="本控件是否可以响应鼠标操作,如(true)"/>
<Attribute name="mousechild" default="true" type="BOOL" comment="本控件的子控件是否可以响应用户操作,如(true)"/>
<Attribute name="visible" default="true" type="BOOL" comment="是否可见,如(true)"/>
<Attribute name="float" default="false" type="BOOL" comment="是否使用绝对定位,如(true)"/>
<Attribute name="shortcut" default="" type="CHAR" comment="对应的快捷键,如(P)"/>
<Attribute name="menu" default="false" type="BOOL" comment="是否需要右键菜单,如(true)"/>
<Attribute name="inset" default="0,0,0,0" type="RECT" comment="容器的内边距,如(2,2,2,2)"/>
<Attribute name="vscrollbar" default="false" type="BOOL" comment="是否使用竖向滚动条,如(true)"/>
<Attribute name="hscrollbar" default="false" type="BOOL" comment="是否使用横向滚动条,如(true)"/>
<Attribute name="childpadding" default="0" type="INT" comment="子控件之间的额外距离,如(4)"/>
<Attribute name="sepheight" default="0" type="INT" comment="分隔符高度,正负表示分隔符在顶部还是底部,如(4)"/>
<Attribute name="sepimm" default="false" type="BOOL" comment="拖动分隔符是否立即改变大小,如(false)"/>
<Attribute name="header" default="true" type="BOOL" comment="是否显示表头,如(true)"/>
<Attribute name="headerbkimage" default="" type="STRING" comment="表头背景图片"/>
<Attribute name="scrollselect" default="false" type="BOOL" comment="是否随滚动改变选中项,如(false)"/>
<Attribute name="itemfont" default="-1" type="INT" comment="item的字体id,如(0)"/>
<Attribute name="itemalign" default="center" type="STRING" comment="item对齐方式,取值left、right、center,如(center)"/>
<Attribute name="itemendellipsis" default="false" type="BOOL" comment="item句末显示不全是否使用...代替,如(true)"/>
<Attribute name="itemtextpadding" default="0,0,0,0" type="RECT" comment="item文字显示的边距,如(2,2,2,2)"/>
<Attribute name="itemtextcolor" default="0xFF000000" type="DWORD" comment="item字体颜色"/>
<Attribute name="itembkcolor" default="0x00000000" type="DWORD" comment="item背景颜色"/>
<Attribute name="itembkimage" default="" type="STRING" comment="item背景图片"/>
<Attribute name="itemaltbk" default="false" type="BOOL" comment="item是否使用隔行交替背景"/>
<Attribute name="itemselectedtextcolor" default="0xFF000000" type="DWORD" comment="item被选中时的字体颜色"/>
<Attribute name="itemselectedbkcolor" default="0xFFC1E3FF" type="DWORD" comment="item被选中时的背景颜色"/>
<Attribute name="itemselectedimage" default="" type="STRING" comment="item被选中时的背景图片"/>
<Attribute name="itemhottextcolor" default="0xFF000000" type="DWORD" comment="item鼠标悬浮时的字体颜色"/>
<Attribute name="itemhotbkcolor" default="0xFFE9F5FF" type="DWORD" comment="item鼠标悬浮时的背景颜色"/>
<Attribute name="itemhotimage" default="" type="STRING" comment="item鼠标悬浮时的背景图片"/>
<Attribute name="itemdisabledtextcolor" default="0xFFCCCCCC" type="DWORD" comment="item禁用时的字体颜色"/>
<Attribute name="itemdisabledbkcolor" default="0xFFFFFFFF" type="DWORD" comment="item禁用时的背景颜色"/>
<Attribute name="itemdisabledimage" default="" type="STRING" comment="item禁用时的背景图片"/>
<Attribute name="itemlinecolor" default="0x00000000" type="DWORD" comment="item行分割线颜色"/>
<Attribute name="itemshowhtml" default="false" type="BOOL" comment="item是否使用类html富文本绘制,如(false)"/>
<Attribute name="multiexpanding" default="false" type="BOOL" comment="是否支持多个item同时打开,如(false)"/>
<!--TreeView 独有的属性-->
<Attribute name="multipleitem" default="true" type="BOOL" comment="是否允许item多选"/>
<Attribute name="itemcheckimgsize" default="0,0" type="SIZE" comment="Item的复选框图片大小,如(2,2)"/>
<Attribute name="itemiconimgsize" default="0,0" type="SIZE" comment="Item的图标大小,如(2,2)"/>
<Attribute name="visiblefolderbtn" default="true" type="BOOL" comment="是否显示展开与收缩按钮对象"/>
<Attribute name="visiblecheckbtn" default="false" type="BOOL" comment="是否显示复选框对象"/>
<Attribute name="itemminwidth" default="0" type="UINT" comment="设置Item的最小宽度,当hscrollbar为真且itemminwidth大于TreeView宽度时才会显示横向滚动条"/>
<Attribute name="itemtextcolor" default="0x00000000" type="DWORD" comment="item文本颜色"/>
<Attribute name="itemhottextcolor" default="0x00000000" type="DWORD" comment="鼠标进入item时文本颜色"/>
<Attribute name="selitemtextcolor" default="0x00000000" type="DWORD" comment="item被选中时文本颜色"/>
<Attribute name="selitemhottextcolor" default="0x00000000" type="DWORD" comment="item被选中时且鼠标进入时的文本颜色"/>
</TreeView>
<!--UiLib 扩展的UI元素对象-->
<TreeNode parent="ListContainerElement" notifies="setfocus killfocus timer itemactivate itemclick itemexpanded itemcollapsed windowinit(root)">
<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="padding" default="0,0,0,0" type="RECT" comment="外边距,如(2,2,2,2)"/>
<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="bordercolor" default="0x00000000" type="DWORD" comment="边框颜色,如(0xFF000000)"/>
<Attribute name="focusbordercolor" default="0x00000000" type="DWORD" comment="获得焦点时边框的颜色,如(0xFFFF0000)"/>
<Attribute name="colorhsl" default="false" type="BOOL" comment="本控件的颜色是否随窗口的hsl变化而变化,如(false)"/>
<Attribute name="bordersize" default="1" type="INT" comment="边框大小,如(1)"/>
<Attribute name="borderround" default="0,0" type="SIZE" comment="边框圆角半径,如(2,2)"/>
<Attribute name="bkimage" default="" type="STRING" comment="背景图片,如(bk.bmp或file='aaa.jpg' res='' restype='0' dest='0,0,0,0' source='0,0,0,0' corner='0,0,0,0' mask='#FF0000' fade='255' hole='false' xtiled='false' ytiled='false')"/>
<Attribute name="width" default="0" type="INT" comment="控件预设的宽度,如(100)"/>
<Attribute name="height" default="0" type="INT" comment="控件预设的高度,如(30)"/>
<Attribute name="minwidth" default="0" type="INT" comment="控件的最小宽度,如(100)"/>
<Attribute name="minheight" default="0" type="INT" comment="控件的最小高度,如(30)"/>
<Attribute name="maxwidth" default="9999" type="INT" comment="控件的最大宽度,如(100)"/>
<Attribute name="maxheight" default="9999" type="INT" comment="控件的最大高度,如(30)"/>
<Attribute name="text" default="" type="STRING" comment="显示文本,如(测试文本)"/>
<Attribute name="tooltip" default="" type="STRING" comment="鼠标悬浮提示,如(请在这里输入你的密码)"/>
<Attribute name="userdata" default="" type="STRING" comment="自定义标识"/>
<Attribute name="enabled" default="true" type="BOOL" comment="是否可以响应用户操作,如(true)"/>
<Attribute name="mouse" default="true" type="BOOL" comment="本控件是否可以响应鼠标操作,如(true)"/>
<Attribute name="mousechild" default="true" type="BOOL" comment="本控件的子控件是否可以响应用户操作,如(true)"/>
<Attribute name="visible" default="true" type="BOOL" comment="是否可见,如(true)"/>
<Attribute name="float" default="false" type="BOOL" comment="是否使用绝对定位,如(true)"/>
<Attribute name="shortcut" default="" type="CHAR" comment="对应的快捷键,如(P)"/>
<Attribute name="menu" default="false" type="BOOL" comment="是否需要右键菜单,如(true)"/>
<Attribute name="inset" default="0,0,0,0" type="RECT" comment="容器的内边距,如(2,2,2,2)"/>
<Attribute name="vscrollbar" default="false" type="BOOL" comment="是否使用竖向滚动条,如(true)"/>
<Attribute name="hscrollbar" default="false" type="BOOL" comment="是否使用横向滚动条,如(true)"/>
<Attribute name="childpadding" default="0" type="INT" comment="子控件之间的额外距离,如(4)"/>
<Attribute name="selected" default="false" type="BOOL" comment="是否选中,如(true)"/>
<!--TreeNode 独有的属性-->
<Attribute name="horizattr" default="" type="STRING" comment="item虚线、复选框、展开与收缩、文本按钮等对象容器属性设置,格式参考Default元素的属性设置"/>
<Attribute name="dotlineattr" default="" type="STRING" comment="item虚线对象属性设置,格式参考Default元素的属性设置"/>
<Attribute name="folderattr" default="" type="STRING" comment="item展开与收缩按钮对象属性设置,格式参考Default元素的属性设置"/>
<Attribute name="checkboxattr" default="" type="STRING" comment="item复选框对象属性设置,格式参考Default元素的属性设置"/>
<Attribute name="itemattr" default="" type="STRING" comment="item按钮对象属性设置,格式参考Default元素的属性设置"/>
<Attribute name="textcolor" default="0x00000000" type="DWORD" comment="item文本颜色"/>
<Attribute name="texthotcolor" default="0x00000000" type="DWORD" comment="鼠标进入item时文本颜色"/>
<Attribute name="selitemtextcolor" default="0x00000000" type="DWORD" comment="item被选中时文本颜色"/>
<Attribute name="selhotitemtextcolor" default="0x00000000" type="DWORD" comment="item被选中时且鼠标进入时的文本颜色"/>
</TreeNode>
</Controls>