Слияние кода завершено, страница обновится автоматически
<?xml version="1.0" encoding="UTF-8"?>
<!-- 可能有错漏,欢迎补充。wangchyz(wangchyz@gmail.com)
对于xml文件,xml会忽略第一个标签(root),Windows除外。
所以在子窗口布局的时候root可以随便命名,之后才开始布局
对于子xml(非窗体而言)root不建议以Windows命名,不建议使用Font,防止覆盖
eg:X之后开始布局,X随便命名。可以参考Default的xml
<X>
<HorizontalLayout>
</HorizontalLayout>
<X>
-->
<Controls>
<Window parent="">
<Attribute name="size" default="0,0" type="SIZE" comment="窗口的初始化大小,如(800,600),于roundcorner属性之后"/>
<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),于size属性之前,否则可能无效"/>
<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="绘制脏矩形(屏幕上更新的区域被称为脏矩形)"/>
<Attribute name="noactivate" default="true" type="BOOL" comment="是否激活窗口,默认为True"/>
<Attribute name="opacity" default="255" type="BYTE" comment="窗口的透明度(0-255),如(100)"/>
<Attribute name="layered" default="false" type="BOOL" comment="是否启用分层窗口,例如:异形窗口"/>
<Attribute name="layeredopacity" default="255" type="BYTE" comment="分层WS_EX_LAYERED窗口的透明度(0-255),如(100)"/>
<Attribute name="layeredimage" default="" type="STRING" comment="分层窗口的背景图,例如:异形窗口"/>
<Attribute name="disabledfontcolor" default="0x00000000" type="DWORD" comment="禁用控件字体的默认颜色"/>
<Attribute name="defaultfontcolor" default="0x00000000" type="DWORD" comment="控件字体的默认颜色"/>
<Attribute name="linkfontcolor" default="0x00000000" type="DWORD" comment="link字体的默认颜色"/>
<Attribute name="linkhoverfontcolor" default="0x00000000" type="DWORD" comment="linkhover字体的默认颜色"/>
<Attribute name="selectedcolor" default="0x00000000" type="DWORD" comment="控件选中的默认背景颜色"/>
</Window>
<!--Include 需要包含的默认xml属性文件,xml需要包含Default标签
eg:
<X>
<Default name="控件名称" value="默认的控件属性" />
<X>
-->
<Include comment="作为Root的子标签">
<Attribute source="xml" default="" type="STRING" comment="需要包含的默认的xml文件"/>
</Include>
<!--默认的控件属性-->
<Default comment="作为Root的子标签">
<Attribute source="name" default="" type="STRING" comment="控件名称"/>
<Attribute source="value" default="" type="STRING" comment="控件默认属性"/>
</Default>
<Font comment="作为Root的子标签">
<Attribute name="id" default="-1" type="int" comment="字体的id,must必须指定"/>
<Attribute name="name" default="系统默认字体" type="STRING" comment="字体名称 eg(宋体)"/>
<Attribute name="size" default="12" type="INT" comment="字体大小"/>
<Attribute name="weight" default="400" type="INT" comment="字体重量,bold=700" >
<Attribute name="bold" default="false" type="BOOL" comment="字体是否加粗"/>
<Attribute name="underline" default="false" type="BOOL" comment="是否下划线"/>
<Attribute name="italic" default="false" type="BOOL" comment="是否为斜体"/>
<Attribute name="shared" default="false" type="BOOL" comment="是否共享字体"/>
<Attribute name="default" default="false" type="BOOL" comment="是否指定为默认字体"/>
</Font>
<!--使用xml文件作为control-->
<ChildLayout parent="Container" >
<Attribute name="xmlfile" default="" type="STRING" comment="子窗体XML布局文件"/>
</ChildLayout>
<!--排列控件,只支持一个子控件-->
<AlignLayout parent="Container" >
<Attribute name="align" default="center" type="STRING" comment="水平对齐方式,left right center"/>
<Attribute name="valign" default="center" type="STRING" comment="垂直对齐方式,top bottom center"/>
</AlignLayout>
<Control parent="" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="name" default="" type="STRING" comment="控件名字,同一窗口内必须唯一,如(testbtn)"/>
<Attribute name="mousetransparent" default="true" type="BOOL" comment="鼠标事件是否穿透窗口,配合layered属性使用"/>
<Attribute name="roundcorner" default="0,0" type="SIZE" comment="窗口圆角大小,如(4,4)"/>
<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="bkdirect" default="vertical" type="String" comment="背景渐变色方向 vertical,horizon"/>
<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="0" type="INT | RECT" comment="可以设置INT或RECT类型的值。当值为ING时则左、上、右、下都用该值作为宽。值为RECT类型时则分别设置左、上、右、下的边框"/>
<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="borderround" default="0,0" type="SIZE" comment="边框圆角半径,如(2,2)"/>
<!--duilib本身并不支持net,如果希望使用urlimage,需要在初始化的时候调用CPaintManagerUI::SetDownloadFile-->
<!--当图片下载完成之后会触发WindowImplBase::OnUrlImageUpdate-->
<Attribute name="urlimage" default="" type="STRING" comment="背景图片url" />
<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="weight" default="1" type="INT" comment="控件预设的高或者宽度的比重,在HorizontalLayout,VerticalLayout中生效"/>
<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="tag" default="0" type="int64" comment="控件的tag标记"/>
<Attribute name="killpopup" default="true" type="BOOL" comment="如果是弹出式窗口,点击是否应该关闭弹出式窗口,eg:combo"/>
<Attribute name="keyboard" default="true" type="BOOL" comment="非CButtonUI类忽略该值,为false时不支持TAB_STOP,且该对象不处理键盘信息"/>
<!--liulei 避免动态设置SetVisible ,因为当Control不可见的时候,Contain是不会对不可见容器Pos进行调整的,如果父容器位置改变之后再动态SetVisible
此时可能导致Control位置不对-->
<Attribute name="showbkimg" default="true" type="BOOL" comment="是否显示背景图片,如(true)"/>
<Attribute name="showstatusimg" default="true" type="BOOL" comment="是否显示状态背景图片,如(true)"/>
</Control>
<Container parent="Control" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="inset" default="0,0,0,0" type="RECT" comment="容器的内边距,如(2,2,2,2)"/>
<Attribute name="mousechild" default="true" type="BOOL" comment="本控件的子控件是否可以响应用户操作,如(true)"/>
<Attribute name="vscrollbar" default="false" type="BOOL" comment="是否使用竖向滚动条,如(true)"/>
<Attribute name="vscrollbarstyle" default="" type="STRING" comment="竖向滚动条属性"/>
<Attribute name="hscrollbar" default="false" type="BOOL" comment="是否使用横向滚动条,如(true)"/>
<Attribute name="hscrollbarstyle" default="" type="STRING" comment="横向滚动条属性"/>
<Attribute name="childpadding" default="0" type="INT" comment="子控件之间的额外距离,如(4)"/>
<Attribute name="childalign" default="" type="STRING" comment="子窗口的水平对齐属性:left center right"/>
<Attribute name="childvalign" default="" type="STRING" comment="子窗口的垂直对齐属性:top center bottom"/>
</Container>
<DateTime parent="Label">
</DateTime>
<VerticalLayout parent="Container" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="sepheight" default="0" type="INT" comment="分隔符高度,正负表示分隔符在顶部还是底部,如(4)"/>
<Attribute name="sepimm" default="false" type="BOOL" comment="拖动分隔符是否立即改变大小,如(false)"/>
</VerticalLayout>
<HorizontalLayout parent="Container" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="sepwidth" default="0" type="INT" comment="分隔符宽,正负表示分隔符在左边还是右边,如(-4)"/>
<Attribute name="sepimm" default="false" type="BOOL" comment="拖动分隔符是否立即改变大小,如(false)"/>
</HorizontalLayout>
<!--网格Grid布局,暂时不支持虚表,如果数据量大请使用List实现Grid-->
<GridLayout parent="Container" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="childvpadding" default="0" type="INT" comment="子控件之间的额外距离,如(4)"/>
<Attribute name="columns" default="1" type="INT" comment="列数,如(4)"/>
<Attribute name="itemsize" default="0,0" type="SIZE" comment="子项固定大小,如(128,128)"/>
<Attribute name="itemtemplate" default="" type="STRING" comment="子窗体XML布局文件"/>
</GridLayout>
<!--仅仅包括展示区,不包括标签区域,标签区域自己定制-->
<TabLayout parent="Container" notifies="setfocus killfocus timer menu tabselect windowinit(root)">
<Attribute name="selectedid" default="0" type="INT" comment="默认选中的页面id,如(0)"/>
</TabLayout>
<!--带有滑动动画效果的TabLayout-->
<SliderTabLayout parent="TabLayout">
<direction name="direction" default="horizontal" type="STRING" comment="vertical or horizontal 布局方式水平or垂直"/>
</SliderTabLayout>
<!--功能性控件,需要自己对控件进行封装和内部事件处理Notify-->
<FunctionalLayout parent="ChildLayout" comment="没有特殊属性,需要派生来封装功能性控件配合CreateControl接口">
</FunctionalLayout>
<ActiveX parent="Control" notifies="setfocus killfocus timer menu showactivex windowinit(root)">
<Attribute name="clsid" default="" type="STRING" comment="activex的clsid,如({8856F961-340A-11D0-A96B-00C04FD705A2})"/>
<Attribute name="modulename" default="" type="STRING" comment="activex从指定位置加载,如(flash/flash.ocx)"/>
<Attribute name="delaycreate" default="true" type="BOOL" comment="是否需要延迟创建activex,如(false)"/>
</ActiveX>
<WebBrowser parent="ActiveX" >
<Attribute name="homepage" default="" type="STRING" comment="默认首页" />
<Attribute name="autonavi" default="false" type="BOOL" comment="是否打开默认首页" />
</WebBrowser>
<!--基于Miniblink的webVeiew,该控件只封装了常用的web操作,
1. 使用该控件需要再当前目录先添加node.dll(mb的库),否则会失败
2. 如果需要使用更多扩展请在exe外部初始化mb
3. 默认封装了c++函数CallDuiMsg,外部js可以直接通过window.CallDuiMsg调用
-->
<MBWebBrowser>
<Attribute name="homepage" default="" type="STRING" comment="默认首页" />
</MBWebBrowser>
<IpAddress parent="Label">
<Attribute name="text" default="0.0.0.0" type="STRING" comment="ip地址例如:192.168.1.1"/>
<Attribute name="field0" default="0,255" type="BYTE" comment="filed0的范围如(0,100)"/>
<Attribute name="field1" default="0,255" type="BYTE" comment="filed1的范围如(0,100)"/>
<Attribute name="field2" default="0,255" type="BYTE" comment="filed2的范围如(0,100)"/>
<Attribute name="field3" default="0,255" type="BYTE" comment="filed3的范围如(0,100)"/>
</IpAddress>
<Combo parent="Container" notifies="setfocus killfocus timer menu dropdown itemselect windowinit(root)">
<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="itemtextcolor" default="0xFF000000" type="DWORD" comment="item字体颜色"/>
<Attribute name="itemheight" default="" type="INT" comment="设置Item的高度"/>
<Attribute name="itemfont" default="" type="INT" comment="设置Item的字体"/>
<Attribute name="itemalign" default="center" type="STRING" comment="item对齐方式,取值left、right、center,如(center)"/>
<Attribute name="itemtextpadding" default="0,0,0,0" type="RECT" comment="item文字显示的边距,如(2,2,2,2)"/>
<Attribute name="hotimage" default="" type="STRING" comment="鼠标悬浮的状态图片"/>
<Attribute name="pushedimage" default="" type="STRING" comment="鼠标按下的状态图片"/>
<Attribute name="focusedimage" default="" type="STRING" comment="获得焦点时的状态图片"/>
<Attribute name="disabledimage" default="" type="STRING" comment="禁用的状态图片"/>
<Attribute name="dropboxsize" default="0,150" type="STRING" comment="弹出框大小设置"/>
<Attribute name="dropbox" default="" type="STRING" comment="弹出框属性设置"/>
<Attribute name="normalimage" default="" type="STRING" comment="普通状态图片"/>
<Attribute name="showtext" default="TRUE" type="BOOL" comment="Combo是否展示文字"/>
<Attribute name="showselftext" default="" type="STRING" comment="Combo文字"/>
<Attribute name="itemfont" default="-1" type="INT" comment="item的字体id,如(0)"/>
<Attribute name="font" default="-1" type="INT" comment="combo的字体id,如(0)"/>
<Attribute name="textcolor" default="0xFF000000" type="DWORD" comment="item字体颜色"/>
<Attribute name="align" default="left" type="STRING" comment="文字对齐方式,取值left、right、center"/>
<Attribute name="valign" default="left" type="STRING" comment="文字对齐方式,取值top、center、bottom"/>
<Attribute name="textpadding" default="0,0,0,0" type="RECT" comment="文字显示的边距,如(2,2,2,2)"/>
<!--liulei 扩展属性 edit 默认会根据textpadding占据Combo位置,所以为了Combo显示,设置一下textpadding-->
<Attribute name="showselftext" default="false" type="BOOL" comment="是否显示自己本身文本"/>
<Attribute name="edit" default="false" type="BOOL" comment="Combo 是否可以进行编辑"/>
<Attribute name="editattr" default="" type="STRING" comment="Combo Edit的属性设置"/>
</Combo>
<Popup parent="Container" >
<Attribute name="popboxsize" default="200,100" type="SIZE" comment="弹出式窗口的大小"/>
<Attribute name="xmlfile" default="" type="STRING" comment="弹出式窗口对应的xml,xml必须以Window标签开始"/>
<Attribute name="direct" default="" type="STRING" comment="弹出式窗口的首要位置,top,bottom"/>
</Popup>
<!--二维码-->
<QRCode parent="Control" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="errlevel" default="" type="STRING" comment="容错等级0,1,2,3,等级越高容错率越好,默认3,需要在text之前设置,否则当次无效"/>
<Attribute name="text" default="" type="STRING" comment="需要进行编码的文本,内部会自动转utf-8"/>
<Attribute name="qrcolor" default="0xFF000000" type="DWORD" comment="二维码颜色"/>
<Attribute name="qrbkcolor" default="0xFFFFFFFF" type="DWORD" comment="二维码背颜色"/>
</QRCode>
<Label parent="Control" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="align" default="left" type="STRING" comment="文字横向对齐方式,取值left、center、right"/>
<Attribute name="valign" default="center" type="STRING" comment="文字纵向对齐方式,取值top、center、bottom"/>
<Attribute name="endellipsis" default="false" type="BOOL" comment="句末显示不全是否使用...代替,如(true)"/>
<Attribute name="font" default="-1" type="INT" comment="字体id,如(0)"/>
<Attribute name="textcolor" default="0x00000000" type="DWORD" comment="字体颜色,0表示使用默认字体颜色,如(0xFFFF0000)"/>
<Attribute name="disabledtextcolor" default="0x00000000" type="DWORD" comment="disabled字体颜色,0表示使用默认disabled字体颜色,如(0xFFFF0000)"/>
<Attribute name="textpadding" default="0,0,0,0" type="RECT" comment="文字显示的边距,如(2,2,2,2)"/>
<Attribute name="multiline" default="false" type="BOOL" comment="是否使用多行,如(true)"/>
<Attribute name="estimate" default="false" type="BOOL" comment="label大小是否自己适应,类似于Button的自己调整大小"/>
<Attribute name="showhtml" default="false" type="BOOL" comment="是否使用类html富文本绘制,如(false)"/>
<Attribute name="enabledeffect" default="false" type="BOOL" comment="是否使用字体特效,使用下面文字特效属性必须该属性设置为true方有效"/>
<Attribute name="enabledluminous" default="false" type="BOOL" comment="是否使用发光字体"/>
<Attribute name="enabledstroke" default="false" type="BOOL" comment="是否使用描边效果"/>
<Attribute name="enabledshadow" default="false" type="BOOL" comment="是否使用阴影效果"/>
<Attribute name="luminousfuzzy" default="3.0" type="FLOAT" comment="配合enabledluminous使用"/>
<Attribute name="gradientangle" default="0" type="INT" comment="渐变色渲染角度"/>
<Attribute name="gradientlength" default="0" type="INT" comment="渐变距离"/>
<Attribute name="shadowoffset" default="0,0" type="SIZE" comment=""/>
<Attribute name="textcolor1" default="0x00000000" type="STRING" comment="字体渐变色"/>
<Attribute name="textrenderinghint" default="cleartypegridfit" type="STRING" comment="Gdi+字体优化,systemdefault,singlebitperpixelgridgit,singlebitperpixel,antialiasgridfit,antialias"/>
<Attribute name="textshadowcolora" default="0xff000000" type="STRING" comment="字体阴影渐变色"/>
<Attribute name="textshadowcolorb" default="0xff000000" type="STRING" comment="字体阴影渐变色"/>
<Attribute name="strokecolor" default="0x00000000" type="STRING" comment="字体描边的颜色"/>
</Label>
<Button parent="Label" notifies="setfocus killfocus timer menu click windowinit(root)">
<Attribute name="normalimage" default="" type="STRING" comment="普通状态图片"/>
<Attribute name="hotimage" default="" type="STRING" comment="鼠标悬浮的状态图片"/>
<Attribute name="pushedimage" default="" type="STRING" comment="鼠标按下的状态图片"/>
<Attribute name="focusedimage" default="" type="STRING" comment="获得焦点时的状态图片"/>
<Attribute name="disabledimage" default="" type="STRING" comment="禁用的状态图片"/>
<Attribute name="foreimage" default="" type="STRING" comment="前景图片"/>
<Attribute name="hotforeimage" default="" type="STRING" comment="前景图片"/>
<Attribute name="fivestatusimage" default="" type="STRING" comment="Fives状态图片"/>
<Attribute name="fadedelta" default="" type="INT" comment="透明度 0-255"/>
<Attribute name="hotbkcolor" default="0xFFE9F5FF" type="DWORD" comment="item鼠标悬浮时的背景颜色"/>
<Attribute name="hottextcolor" default="0x00000000" type="DWORD" comment="鼠标悬浮字体颜色,0表示不使用此颜色,如(0xFFFF0000)"/>
<Attribute name="pushedtextcolor" default="0x00000000" type="DWORD" comment="鼠标按下字体颜色,0表示不使用此颜色,如(0xFFFF0000)"/>
<Attribute name="focusedtextcolor" default="0x00000000" type="DWORD" comment="获得焦点字体颜色,0表示不使用此颜色,如(0xFFFF0000)"/>
</Button>
<!--支持加载png,icon图片以及HICON句柄-->
<Icon parent="Button">
<Attribute name="icopadding" default="0,0,0,0" type="RECT" comment="Icon的边距,如(2,2,2,2)"/>
<Attribute name="circlemode" default="fasle" type="BOOL" comment="是否使用圆形模式,展示圆形图标"/>
</Icon>
<Option parent="Button" notifies="setfocus killfocus timer menu click selectchanged windowinit(root)">
<Attribute name="group" default="" type="STRING" comment="所属组的名称,可不设"/>
<Attribute name="selected" default="false" type="BOOL" comment="是否选中"/>
<Attribute name="selectedimage" default="" type="STRING" comment="选中的状态图片"/>
<Attribute name="selectedhotimage" default="" type="STRING" comment="选中的Hot状态图片"/>
<Attribute name="foreimage" default="" type="STRING" comment="前景图片"/>
<Attribute name="selectedtextcolor" default="0x00000000" type="DWORD" comment="选中状态字体颜色,0表示不使用此颜色,如(0xFFFF0000)"/>
<Attribute name="selectedbkcolor" default="0x00000000" type="DWORD" comment="选中状态字体颜色,0表示不使用此颜色,如(0xFFFF0000)"/>
</Option>
<Text parent="Label" notifies="setfocus killfocus timer menu link windowinit(root)">
</Text>
<Progress parent="Label" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="thumbpadding" default="0,0,0,0" type="RECT" comment="thum的边距,如(2,2,2,2)"/>
<Attribute name="foreimage" default="" type="STRING" comment="前景图片"/>
<Attribute name="hor" default="true" type="BOOL" comment="水平或垂直,如(true)"/>
<Attribute name="min" default="0" type="INT" comment="进度最小值,如(0)"/>
<Attribute name="max" default="100" type="INT" comment="进度最大值,如(100)"/>
<Attribute name="value" default="0" type="INT" comment="进度值,如(50)"/>
</Progress>
<Slider parent="Progress" notifies="setfocus killfocus timer menu valuechanged windowinit(root)">
<Attribute name="imgpadding" default="0,0,0,0" type="RECT" comment="图标的边距,如(2,2,2,2)"/>
<Attribute name="thumbimage" default="" type="STRING" comment="拖动滑块普通状态图片"/>
<Attribute name="thumbhotimage" default="" type="STRING" comment="拖动滑块鼠标悬浮状态图片"/>
<Attribute name="thumbpushedimage" default="" type="STRING" comment="拖动滑块鼠标按下状态图片"/>
<Attribute name="thumbsize" default="10,10" type="SIZE" comment="拖动滑块大小,如(10,10)"/>
<Attribute name="step" default="1" type="INT" comment="进度步长,如(1)"/>
<Attribute name="imm" default="false" type="BOOL" comment="当值发生变化的时候是否立即发送通知,否则只有最后确定(UP)的时候才发送通知"/>
</Slider>
<Edit parent="Label" notifies="setfocus killfocus timer menu return textchanged windowinit(root)">
<Attribute name="readonly" default="false" type="BOOL" comment="是否只读,如(false)"/>
<Attribute name="decimal" default="false" type="BOOL" comment="是否只允许输入带小数点的数字,如(false)"/>
<Attribute name="password" default="false" type="BOOL" comment="是否显示密码字符,如(false)"/>
<Attribute name="numberonly" default="false" type="BOOL" comment="是否只允许输入数字,如(false)"/>
<Attribute name="autoselall" default="false" type="BOOL" comment="是否默认全选"/>
<Attribute name="maxchar" default="255" type="INT" comment="输入字符最大长度,如(100)"/>
<Attribute name="digits" default="0" type="INT" comment="小数点的位数,如果为0表示不设置,配合decimal属性使用"/>
<Attribute name="normalimage" default="" type="STRING" comment="普通状态图片"/>
<Attribute name="hotimage" default="" type="STRING" comment="鼠标悬浮状态图片"/>
<Attribute name="focusedimage" default="" type="STRING" comment="获得焦点状态图片"/>
<Attribute name="disabledimage" default="" type="STRING" comment="禁用状态图片"/>
<Attribute name="nativebkcolor" default="0x00000000" type="DWORD" comment="windows原生edit控件的背景颜色,如(0xFFFFFFFF)"/>
<Attribute name="placeholdertext" default="" type="STRING" comment="edit的占位提示文字"/>
<Attribute name="placeholdertextcolor" default="0x00000000" type="DWORD" comment="edit的占位提示文字颜色,如(0xFF000000)"/>
</Edit>
<ScrollBar parent="Control" notifies="timer menu scrolled windowinit(root)">
<Attribute name="button1color" default="0x00000000" type="DWORD" comment="左或上按钮颜色"/>
<Attribute name="button1normalimage" default="" type="STRING" comment="左或上按钮普通状态图片"/>
<Attribute name="button1hotimage" default="" type="STRING" comment="左或上按钮鼠标悬浮状态图片"/>
<Attribute name="button1pushedimage" default="" type="STRING" comment="左或上按钮鼠标按下状态图片"/>
<Attribute name="button1disabledimage" default="" type="STRING" comment="左或上按钮禁用状态图片"/>
<Attribute name="button1color" default="0x00000000" type="DWORD" comment="右或下按钮颜色"/>
<Attribute name="button2normalimage" default="" type="STRING" comment="右或下按钮普通状态图片"/>
<Attribute name="button2hotimage" default="" type="STRING" comment="右或下按钮鼠标悬浮状态图片"/>
<Attribute name="button2pushedimage" default="" type="STRING" comment="右或下按钮鼠标按下状态图片"/>
<Attribute name="button2disabledimage" default="" type="STRING" comment="右或下按钮禁用状态图片"/>
<Attribute name="thumbcolor" default="0x00000000" type="DWORD" comment="滑块颜色"/>
<Attribute name="thumbnormalimage" default="" type="STRING" comment="滑块普通状态图片"/>
<Attribute name="thumbhotimage" default="" type="STRING" comment="滑块鼠标悬浮状态图片"/>
<Attribute name="thumbpushedimage" default="" type="STRING" comment="滑块鼠标按下状态图片"/>
<Attribute name="thumbdisabledimage" default="" type="STRING" comment="滑块禁用状态图片"/>
<Attribute name="railnormalimage" default="" type="STRING" comment="滑块中间标识普通状态图片"/>
<Attribute name="railhotimage" default="" type="STRING" comment="滑块中间标识鼠标悬浮状态图片"/>
<Attribute name="railpushedimage" default="" type="STRING" comment="滑块中间标识鼠标按下状态图片"/>
<Attribute name="raildisabledimage" default="" type="STRING" comment="滑块中间标识禁用状态图片"/>
<Attribute name="bknormalimage" default="" type="STRING" comment="背景普通状态图片"/>
<Attribute name="bkhotimage" default="" type="STRING" comment="背景鼠标悬浮状态图片"/>
<Attribute name="bkpushedimage" default="" type="STRING" comment="背景鼠标按下状态图片"/>
<Attribute name="bkdisabledimage" default="" type="STRING" comment="背景禁用状态图片"/>
<Attribute name="hor" default="true" type="BOOL" comment="水平或垂直,如(true)"/>
<Attribute name="linesize" default="8" type="INT" comment="滚动一行的大小,如(8)"/>
<Attribute name="range" default="100" type="INT" comment="滚动范围,如(100)"/>
<Attribute name="value" default="0" type="INT" comment="滚动位置,如(0)"/>
<Attribute name="showbutton1" default="true" type="BOOL" comment="是否显示左或上按钮,如(true)"/>
<Attribute name="showbutton2" default="true" type="BOOL" comment="是否显示右或下按钮,如(true)"/>
</ScrollBar>
<Menu parent="List" notifies="屏蔽了setfocus killfocus itemselect windowinit" >
<Attribute name="bkimage" default="无,默认为黑色背景一般都需要制定背景图片 "/>
<!-- <Default name="Menu" value="inset="2,2,2,2" itemtextpadding="30,0,0,0" bkimage="file='skin\res\menu_bk.png' corner='30,8,8,8'" hole="false"" />-->
</Menu>
<MenuElement parent="ListContainElement" notifies="itemclick,屏蔽了setfocus killfocus itemselect windowinit"/>
<!--MenuElement 不会主动调节控件高度,如果需要包含其他多个控件,控件请使用HorizontalLayout或者Verticallayout包含,需要主动设置高度-->
<!--MenuElemetn 背景绘画使用的是Menu指定item的背景和颜色,不能本身单独设置-->
</MenuElement>
<!--支持虚拟列表 virtuallist 属性-->
<List parent="VerticalLayout" notifies="setfocus killfocus timer menu itemselect windowinit(root)">
<Attribute name="header" default="true" type="BOOL" comment="是否显示表头,如(hidden)"/>
<Attribute name="headerbkimage" default="" type="STRING" comment="表头背景图片"/>
<Attribute name="scrollselect" default="false" type="BOOL" comment="是否随滚动改变选中项,如(false)"/>
<Attribute name="multiexpanding" default="false" type="BOOL" comment="是否支持多个item同时打开,如(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="itemvalign" default="center" type="STRING" comment="item对齐方式,取值top、center、bottom,如(center)"/>
<Attribute name="itemheight" default="" type="INT" comment="设置Item的高度"/>
<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="itemmultiline" default="true" type="BOOL" comment="是否显示多行"/>
<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="itemtemplate" default="" type="STRING" comment="子窗体XML布局文件"/>
<!--list扩展虚拟列表-->
<Attribute name="virtual" default="false" type="BOOL" comment="是否使用虚拟列表,如(false)" />
<Attribute name="virtualo" default="true" type="BOOL" comment="是否使用虚拟列表数据填充优化,如(false)" />
<!--list 浮动panel-->
<Attribute name="panelvisible" default="false" type="BOOL" comment="panel 是否可见" />
<Attribute name="panelheight" default="20" type="INT" comment="panel 的高度,如(20)" />
<Attribute name="paneloffset" default="0" type="INT" comment="panel 的位置便宜量" />
<Attribute name="panelpos" default="bottom" type="STRING" comment="panel的排列位置,如(top)" />
<Attribute name="panelxml" default="" type="STRING" comment="指定Panel的Xml" />
<Attribute name="panelattr" default="" type="STRING" comment="panel 的属性列表 />
</List>
<ListHeader parent="HorizontalLayout" notifies="setfocus killfocus timer windowinit(root)">
</ListHeader>
<ListHeaderItem parent="Control" notifies="setfocus killfocus timer headerclick sort windowinit(root)">
<Attribute name="dragable" default="true" type="BOOL" comment="是否可拖动改变大小,如(true)"/>
<Attribute name="align" default="left" type="STRING" comment="文字对齐方式,取值left、right、cente,如(center)"/>
<Attribute name="valign" default="left" type="STRING" comment="文字对齐方式,取值top、center、bottom,如(center)"/>
<Attribute name="endellipsis" default="false" type="BOOL" comment="句末显示不全是否使用...代替,如(true)"/>
<Attribute name="multiline" default="true" type="BOOL" comment="是否使用多行,如(true)"/>
<Attribute name="font" default="-1" type="INT" comment="字体id,如(0)"/>
<Attribute name="textcolor" default="0x00000000" type="DWORD" comment="字体颜色,0表示使用默认字体颜色,如(0xFFFF0000)"/>
<Attribute name="textpadding" default="2,0,2,0" type="RECT" comment="文字显示的边距,如(2,2,2,2)"/>
<Attribute name="showhtml" default="false" type="BOOL" comment="是否使用类html富文本绘制,如(false)"/>
<Attribute name="normalimage" default="" type="STRING" comment="普通状态图片"/>
<Attribute name="hotimage" default="" type="STRING" comment="鼠标悬浮的状态图片"/>
<Attribute name="pushedimage" default="" type="STRING" comment="鼠标按下的状态图片"/>
<Attribute name="focusedimage" default="" type="STRING" comment="获得焦点时的状态图片"/>
<Attribute name="sepimage" default="" type="STRING" comment="拖动条图片"/>
<Attribute name="sepwidth" default="4" type="INT" comment="分隔符宽,如(4)"/>
<Attribute name="sepcolor" default="0x00000000" type="DWORD" comment="分隔符颜色"/>
<!--表头项目是否支持排序以及图标显示-->
<Attribute name="sort" default="false" type="BOOL" comment="是否支持排序"/>
<Attribute name="sortwidth" default="16" type="int" comment="排序图标宽度"/>
<Attribute name="sortheight" default="16" type="int" comment="排序图标高度"/>
<Attribute name="ascimage" default="" type="STRING" comment="升序图标"/>
<Attribute name="descimage" default="" type="STRING" comment="降序图标"/>
</ListHeaderItem>
<ListElement parent="Control" notifies="setfocus killfocus timer itemactivate itemclick windowinit(root)">
<Attribute name="selected" default="FALSE" type="BOOL" comment="是否选中"/>
</ListElement>
<ListLabelElement parent="ListElement" notifies="setfocus killfocus timer itemactivate itemclick windowinit(root)">
</ListLabelElement>
<ListTextElement parent="ListLabelElement" notifies="setfocus killfocus timer itemactivate itemclick link windowinit(root)">
</ListTextElement>
<ListContainerElement parent="Container" notifies="setfocus killfocus timer itemactivate itemclick itemexpanded itemcollapsed windowinit(root)">
<Attribute name="selected" default="false" type="BOOL" comment="是否选中,如(true)"/>
<Attribute name="expandable" default="false" type="BOOL" comment="是否展开,如(true)"/>
</ListContainerElement>
<RichEdit parent="Container" notifies="setfocus killfocus timer menu return windowinit(root)">
<Attribute name="maxchar" type="INT" comment="输入字符最大长度,如(100)"/>
<Attribute name="numberonly" default="false" type="BOOL" comment="是否只允许输入数字,如(false)"/>
<Attribute name="enablepaste" default="false" type="BOOL" comment="是否允许粘贴操作,如(true)"/>
<Attribute name="vscrollbar" default="false" type="BOOL" comment="是否使用竖向滚动条,如(true)"/>
<Attribute name="autovscroll" default="false" type="BOOL" comment="是否随输入竖向滚动,如(true)"/>
<Attribute name="hscrollbar" default="false" type="BOOL" comment="是否使用横向滚动条,如(true)"/>
<Attribute name="autohscroll" default="false" type="BOOL" comment="是否随输入横向滚动,如(true)"/>
<Attribute name="childpadding" default="0" type="INT" comment="子控件之间的额外距离,如(4)"/>
<Attribute name="wanttab" default="true" type="BOOL" comment="是否接受tab按键消息,如(true)"/>
<Attribute name="wantreturn" default="true" type="BOOL" comment="是否接受return按键消息,如(true)"/>
<Attribute name="wantctrlreturn" default="true" type="BOOL" comment="是否接受ctrl+return按键消息,如(true)"/>
<Attribute name="transparent" default="true" type="BOOL" comment="是否背景透明,如(true)"/>
<Attribute name="rich" default="true" type="BOOL" comment="是否使用富格式,如(true)"/>
<Attribute name="multiline" default="true" type="BOOL" comment="是否使用多行,如(true)"/>
<Attribute name="readonly" default="false" type="BOOL" comment="是否只读,如(false)"/>
<Attribute name="password" default="false" type="BOOL" comment="是否显示密码符,如(true)"/>
<Attribute name="align" default="left" type="STRING" comment="文字对齐方式,取值left、right、cente,如(center)"/>
<Attribute name="font" default="-1" type="INT" comment="字体id,如(0)"/>
<Attribute name="textcolor" default="0xFF000000" type="DWORD" comment="字体颜色,如(0xFFFF0000)"/>
<Attribute name="textpadding" default="0,0,0,0" type="RECT" comment="文字显示的边距,如(2,2,2,2)"/>
<Attribute name="placeholdertext" default="" type="STRING" comment="edit的占位提示文字"/>
<Attribute name="placeholdertextcolor" default="0x00000000" type="DWORD" comment="edit的占位提示文字颜色,如(0xFF000000)"/>
</RichEdit>
<TreeView parent="List" notifies="selectchanged setfocus killfocus timer menu itemselect windowinit(root)">
<Attribute name="itemfont" default="-1" type="INT" comment="item的字体id,如(0)"/>
<!--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>
<TreeNode parent="ListContainerElement" notifies="setfocus killfocus timer itemactivate itemclick itemexpanded itemcollapsed windowinit(root)">
<Attribute name="text" default="" type="STRING" comment="设置Item的文字"/>
<Attribute name="font" default="" type="INT" comment="设置Item的字体"/>
<!--visible 和 uservisible 共同决定是否可见,因为visible内部会重置,外部控制uservisible-->
<Attribute name="visible" default="true" type="BOOL" comment="是否可见,如(true)"/>
<Attribute name="uservisible" 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>
<GifAnim parent="Control" notifies="setfocus killfocus timer menu windowinit(root)">
<Attribute name="bkimage" default="" type="STRING" comment="Gif动画图片路径(不支持source等属性设置)"/>
<Attribute name="autoplay" default="true" type="BOOL" comment="是否自动播放GIF动画"/>
<Attribute name="autosize" default="false" type="BOOL" comment="是否根据图片自动设置控件大小(开启后width和height属性失效)"/>
</GifAnim>
</Controls>
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )