-
Notifications
You must be signed in to change notification settings - Fork 0
/
Wnd.xsd
332 lines (317 loc) · 15.3 KB
/
Wnd.xsd
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
324
325
326
327
328
329
330
331
332
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3school.com.cn"
xmlns="http://www.w3school.com.cn"
elementFormDefault="qualified">
<xs:element name="form">
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"></xs:any>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="wnd" type="Wnd"> </xs:element>
<xs:complexType name="Wnd">
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"></xs:any>
</xs:sequence>
<xs:attribute name="id" type="xs:string" />
<xs:attribute name="x" type="xs:integer" />
<xs:attribute name="y" type="xs:integer" />
<xs:attribute name="w" type="xs:integer" />
<xs:attribute name="h" type="xs:integer" />
<xs:attribute name="parent" type="xs:string" />
<xs:attribute name="esc_close" type="xs:boolean" />
<xs:attribute name="drag" type="xs:boolean" />
<xs:attribute name="revmsg" type="xs:boolean" />
<xs:attribute name="enable" type="xs:boolean" />
<xs:attribute name="visible" type="xs:boolean" />
<xs:attribute name="param" type="xs:integer" />
<xs:attribute name="tip" type="xs:string" />
<xs:attribute name="tipex" type="xs:string" />
<xs:attribute name="scroll" type="xs:boolean" />
<xs:attribute name="scrollpos">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"></xs:minInclusive>
<xs:maxInclusive value="100"></xs:maxInclusive>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="is_vert" type="xs:boolean" />
<xs:attribute name="OnInit" type="xs:string">
<xs:annotation>
<xs:documentation>
创建好此窗口的初始化事件,回调函数原型func(this,param)--this:窗口句柄param:form文件字符串参数(由GenForm传入,比如:GenForm("精炼系统#1#2")此时param值为"1#2")。 </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnLButtonDown" type="xs:string">
<xs:annotation>
<xs:documentation> 鼠标左键点下事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnLButtonUp" type="xs:string">
<xs:annotation>
<xs:documentation> 鼠标左键点下事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标 </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnLButtonClick" type="xs:string">
<xs:annotation>
<xs:documentation> 鼠标左键点击事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标 </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnLButtonDbClick" type="xs:string">
<xs:annotation>
<xs:documentation> 鼠标左键双击事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标 </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnRButtonDown" type="xs:string">
<xs:annotation>
<xs:documentation> 鼠标右键点下事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标 </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnRButtonUp" type="xs:string">
<xs:annotation>
<xs:documentation>鼠标右键弹起事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnRButtonClick" type="xs:string">
<xs:annotation>
<xs:documentation>鼠标右键点击事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnRButtonDbClick" type="xs:string">
<xs:annotation>
<xs:documentation>鼠标右键双击事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnMouseMove" type="xs:string">
<xs:annotation>
<xs:documentation>鼠标移动事件,回调函数原型func(this,param,x,y)--this:窗口句柄param:可不关心x:x坐标y:y坐标</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnMouseWheel" type="xs:string">
<xs:annotation>
<xs:documentation>鼠标滑轮滑动事件,回调函数原型func(this,param)--this:窗口句柄param:小于0向上滚动否则向下滚动</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnKeyDown" type="xs:string"></xs:attribute>
<xs:attribute name="OnKeyUp" type="xs:string"></xs:attribute>
<xs:attribute name="OnMouseIn" type="xs:string"></xs:attribute>
<xs:attribute name="OnMouseOut" type="xs:string"></xs:attribute>
<xs:attribute name="OnVisible" type="xs:string"></xs:attribute>
<xs:attribute name="OnEnable" type="xs:string"></xs:attribute>
<xs:attribute name="OnActive" type="xs:string"></xs:attribute>
<xs:attribute name="OnMove" type="xs:string"></xs:attribute>
<xs:attribute name="OnSizeChange" type="xs:string"></xs:attribute>
<xs:attribute name="OnClose" type="xs:string">
<xs:annotation>
<xs:documentation>窗口关闭事件,回调函数原型func(this)--this:窗口句柄</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnDestroy" type="xs:string">
<xs:annotation>
<xs:documentation>窗口销毁事件,一个窗口被关闭,OnClose不一定会触发,但OnDestroy肯定会触发,回调函数原型func(this)--this:窗口句柄 </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OnTipsInit" type="xs:string"></xs:attribute>
</xs:complexType>
<xs:element name="dialog">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="image" type="xs:string"></xs:attribute>
<xs:attribute name="color" type="xs:string"></xs:attribute>
<xs:attribute name="fitsize" type="xs:boolean"></xs:attribute>
<xs:attribute name="close" type="xs:boolean"></xs:attribute>
<xs:attribute name="title" type="xs:string"></xs:attribute>
<xs:attribute name="title_color" type="xs:string"></xs:attribute>
<xs:attribute name="center" type="xs:string"></xs:attribute>
<xs:attribute name="savepos" type="xs:string"></xs:attribute>
<xs:attribute name="magic" type="xs:string"></xs:attribute>
<xs:attribute name="npc" type="xs:string"></xs:attribute>
</xs:extension>
</xs:complexContent>
<!-- <xs:extension base="personinfo"></xs:extension> -->
</xs:complexType>
</xs:element>
<xs:element name="button">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="image" type="xs:string"></xs:attribute>
<xs:attribute name="text" type="xs:string"></xs:attribute>
<xs:attribute name="text_color" type="xs:string"></xs:attribute>
<xs:attribute name="page_btn" type="xs:boolean"></xs:attribute>
<xs:attribute name="shine" type="xs:boolean"></xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="check">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="image" type="xs:string"></xs:attribute>
<xs:attribute name="text" type="xs:string"></xs:attribute>
<xs:attribute name="text_color" type="xs:string"></xs:attribute>
<xs:attribute name="checked" type="xs:boolean"></xs:attribute>
<xs:attribute name="auto_change" type="xs:boolean"></xs:attribute>
<xs:attribute name="OnCheckChange" type="xs:string">
<xs:annotation>
<xs:documentation>选中状态发生变化事件,回调函数原型func(this)--this:窗口句柄</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="image">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="normal"></xs:enumeration>
<xs:enumeration value="around"></xs:enumeration>
<xs:enumeration value="animate"></xs:enumeration>
<xs:enumeration value="flat"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="image">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="\d{10}"></xs:pattern>
<xs:pattern value="^(\d{10},){8}\d{10}$"></xs:pattern>
<xs:pattern value="\d{10},\d*"></xs:pattern>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="image_color" type="xs:string"></xs:attribute>
<xs:attribute name="fitsize" type="xs:boolean"></xs:attribute>
<xs:attribute name="check_point">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:enumeration value="1"></xs:enumeration>
<xs:enumeration value="2"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="gray" type="xs:boolean"></xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="edit">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="text" type="xs:string"></xs:attribute>
<xs:attribute name="text_color" type="xs:string"></xs:attribute>
<xs:attribute name="type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="number"></xs:enumeration>
<xs:enumeration value="normal"></xs:enumeration>
<xs:enumeration value="password"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="canedit" type="xs:boolean"></xs:attribute>
<xs:attribute name="font" type="xs:string"></xs:attribute>
<xs:attribute name="limit" type="xs:integer"></xs:attribute>
<xs:attribute name="align">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="center"></xs:enumeration>
<xs:enumeration value="align"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="OnEditKeyEnter" type="xs:string"></xs:attribute>
<xs:attribute name="OnEditStrChange" type="xs:string"></xs:attribute>
<xs:attribute name="OnEditLBtnDown" type="xs:string"></xs:attribute>
<xs:attribute name="OnEditMouseIn" type="xs:string"></xs:attribute>
<xs:attribute name="OnEditMouseOut" type="xs:string"></xs:attribute>
<xs:attribute name="OnEditKeyDown" type="xs:string"></xs:attribute>
<xs:attribute name="OnEditKeyUp" type="xs:string"></xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="richedit">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="text" type="xs:string"></xs:attribute>
<xs:attribute name="text_color" type="xs:string"></xs:attribute>
<xs:attribute name="canedit" type="xs:boolean"></xs:attribute>
<xs:attribute name="font" type="xs:string"></xs:attribute>
<xs:attribute name="align">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="align"></xs:enumeration>
<xs:enumeration value="left"></xs:enumeration>
<xs:enumeration value="centerall"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="static">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="text" type="xs:string"></xs:attribute>
<xs:attribute name="text_color" type="xs:string"></xs:attribute>
<xs:attribute name="font" type="xs:string"></xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="itemctrl">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="auto_manage" type="xs:boolean"></xs:attribute>
<xs:attribute name="rbtn_use" type="xs:boolean"></xs:attribute>
<xs:attribute name="invalid" type="xs:boolean"></xs:attribute>
<xs:attribute name="count" type="xs:integer"></xs:attribute>
<xs:attribute name="is_bound" type="xs:boolean"></xs:attribute>
<xs:attribute name="init_item">
<xs:simpleType>
<xs:union memberTypes="xs:integer xs:string"></xs:union>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="use_back" type="xs:boolean"></xs:attribute>
<xs:attribute name="big_icon" type="xs:boolean"></xs:attribute>
<xs:attribute name="offx" type="xs:integer"></xs:attribute>
<xs:attribute name="offy" type="xs:integer"></xs:attribute>
<xs:attribute name="OnItemMoveIn" type="xs:string"></xs:attribute>
<xs:attribute name="OnItemCtrlDbClick" type="xs:string"></xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="combobox">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Wnd">
<xs:attribute name="image" type="xs:integer"></xs:attribute>
<xs:attribute name="fill_image" type="xs:integer"></xs:attribute>
<xs:attribute name="text" type="xs:string"></xs:attribute>
<xs:attribute name="text_color" type="xs:string"></xs:attribute>
<xs:attribute name="length" type="xs:string"></xs:attribute>
<xs:attribute name="content" type="xs:string"></xs:attribute>
<xs:attribute name="OnComboStrChange" type="xs:string"></xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="script" type="xs:string"> </xs:element>
<xs:element name="text" type="xs:string"></xs:element>
</xs:schema>