duilib属性列表.xml
duilib 快速⼊门
<?xml version="1.0" encoding="UTF-8"?>
<Resources>
<Global comment="定义了全局公⽤资源,包含了字体、class、⽂字颜⾊。定义Global标签的xml⽂件需要放到资源⽬录的根位置,⽬前命名为硬编码“l”,详见G <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="lectedcolor" default="0xFFBAE4FF" type="DWORD" comment="默认的lected字体颜⾊,如(0xFFBAE4FF)"/>
</Global>
<Font comment="需要在Global标签内定义">
<Attribute name="name" default="" type="STRING" comment="字体名字,如果指定为system,则使⽤系统默认字体(在xp上为新宋体,⾼版本系统上为微软雅⿊)"/>
<Attribute name="size" default="12" type="INT" comment="字体⼤⼩,如(13)"/>
<Attribute name="bold" default="fal" type="BOOL" comment="字体是否加粗,如(true)"/>
<Attribute name="underline" default="fal" type="BOOL" comment="字体是否加下划线,如(true)"/>
<Attribute name="italic" default="fal" type="BOOL" comment="字体是否为斜体,如(true)"/>
</Font>
<Class comment="需要在Global标签或者Window标签内定义">
<Attribute name="Class" default="" type="STRING" comment="⾃定义的控件样式的名字,在需要使⽤样式的地⽅直接指定这个名字,如(btn_default)"/>
<Attribute name="Value" default="" type="STRING" comment="内置的控件属性,如(text=";测试" height="12")"/>
双子男射手女
</Class>
<TextColor comment="⽤字符串常量代替数值来定义颜⾊,需要在Global标签内定义">
<Attribute name="name" default="" type="STRING" comment="颜⾊的名字,如(white)"/>
<Attribute name="value" default="0x00000000" type="DWORD" comment="常量对应的颜⾊,如(0xFFFFFFFF)"/>
</TextColor>
<Language comment="实际并不存在此标签,这⾥说明多语⾔的⽤法。语⾔⽂件⽂件需要放到“lang\zh_CN\gdstrings.ini”(相对可执⾏程序,并不是相对资源⽬录),详见G </Language>
<Include comment="⽤于xml⽂件的复⽤和较⼤xml⽂件的分割,指定此标签的地⽅会在对应位置⾃动展开指定的xml⽂件,需要包含在根标签内部,不能独⽴于根标签使⽤ <Attribute name="source" default="" type="STRING" comment="要插⼊的xml⽂件的路径,如(l)"/>
<Attribute name="count" default="1" type="INT" comment="重复插⼊的数量"/>
</Include>
</Resources>
<Events>
<Event comment="此需要包含在某个控件标签内使⽤。当包含Event标签的控件触发接收的消息时会动态设置接受者控件的属性,设置为applyattribute代表的值">
<Attribute name="type" default="" type="STRING" comment="接收的消息类型,⽤空格分隔多个消息,如(killfocus,完整的消息类型见duilib库Define.h⽂件)"/>
<Attribute name="receiver" default="" type="STRING" comment="接受者控件的名字,⽤空格分隔多个名字,如(btn_test).如果名字以“./”或者“.\开头”,则代表接受者控件 <Attribute name="applyattribute" default="" type="STRING" comment="动态设置的属性值,可以设置多个属性"/>
</Event>
<BubbledEvent comment="此需要包含在某个控件标签内使⽤。当包含BubbledEvent标签的控件或者其⼦控件触发接收的消息时会动态设置接受者控件的属性,设置为 <Attribute name="type" default="" type="STRING" comment="接收的消息类型,⽤空格分隔多个消息,如(killfocus,完整的消息类型见duilib库Define.h⽂件)"/>
<Attribute name="receiver" default="" type="STRING" comment="接受者控件的名字,⽤空格分隔多个名字,如(btn_test).如果名字以“./”或者“.\开头”,则代表接受者控件 <Attribute name="applyattribute" default="" type="STRING" comment="动态设置的属性值,可以设置多个属性"/>
</BubbledEvent>
</Events>
<Controls>
<Window parent="">
<Attribute name="size" default="0,0" type="SIZE" comment="窗⼝的初始化⼤⼩,如(800,600)"/>
<Attribute name="mininfo" default="0,0" type="SIZE" comment="窗⼝最⼩⼤⼩,如(320,240)"/>
<Attribute name="maxinfo" default="0,0" type="SIZE" comment="窗⼝最⼤⼤⼩,如(1600,1200)"/>
<Attribute name="heightpercent" default="0.0" type="DOUBLE" comment="窗⼝的初始⾼度占屏幕⾼度的百分⽐,应该写在size、mininfo、maxinfo属性后⾯"/>
<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="textid" default="" type="STRING" comment="窗体标题字符串的ID,ID在多语⾔⽂件中指定,如(STRID_MIANWINDOW_TITLE)"/>
<Attribute name="roundcorner" default="0,0" type="SIZE" comment="窗⼝圆⾓⼤⼩,如(4,4)"/>
<Attribute name="shadowattached" default="true" type="BOOL" comment="窗⼝是否附加阴影效果,如(true)"/>
<Attribute name="shadowimage" default="" type="STRING" comment="使⽤⾃定义的阴影素材去代替默认的阴影效果,设置的路径要注意相对路径以及九宫格属性 <Attribute name="shadowcorner" default="0,0,0,0" type="RECT" comment="设置了shadowimage属性后,设置此属性来指定阴影素材的九宫格描述,这个属性⼀定 <Attribute name="alphafixcorner" default="14,14,14,14" type="RECT" comment="透明通道修补范围的的九宫格描述"/>
<Attribute name="alphafixcorner" default="14,14,14,14" type="RECT" comment="透明通道修补范围的的九宫格描述"/>
<Attribute name="custom_shadow" default="14,14,14,14" type="RECT" comment="与alphafixcorner完全⼀样,为了兼容⽼版本xml所以没有去掉这个属性"/>
</Window>
<Control parent="" notifies="暂时不写">
冰箱冷冻室不制冷<Attribute name="class" default="" type="STRING" comment="控件样式,⽤样式⾥⾯的属性值来设置本控件的属性,如(btn_default),可以同时指定多个样式,各个样式 <Attribute name="name" default="" type="STRING" comment="控件名字,同⼀窗⼝内必须唯⼀,如(testbtn)"/>
<Attribute name="halign" default="left" type="STRING" comment="控件的横向位置,如(center),⽀持left、center、right三种位置"/>
<Attribute name="valign" default="top" type="STRING" comment="控件的纵向位置,如(center),⽀持top、center、bottom三种位置"/>
<Attribute name="margin" default="0,0,0,0" type="RECT" comment="外边距,如(2,2,2,2)"/>
<Attribute name="bkcolor" default="" type="STRING" comment="背景颜⾊字符串常量,如(white)"/>
<Attribute name="bkcolor1" default="" type="STRING" comment="背景渐变⾊1,和bkcolor配合使⽤,如(blue)"/>
<Attribute name="normalcolor" default="" type="STRING" comment="普通状态颜⾊,如(white)"/>
<Attribute name="hotcolor" default="" type="STRING" comment="悬浮状态颜⾊,如(white)"/>
<Attribute name="pushedcolor" default="" type="STRING" comment="按下状态颜⾊,如(white)"/>
<Attribute name="disabledcolor" default="" type="STRING" comment="禁⽤状态颜⾊,如(white)"/>
<Attribute name="bordercolor" default="" type="STRING" comment="边框颜⾊,如(blue)"/>
<Attribute name="bordersize" default="0" type="INT | RECT" comment="可以设置INT或RECT类型的值。当值为ING时则左、上、右、下都⽤该值作为宽。值为RE <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="borderround" default="0,0" type="SIZE" comment="边框圆⾓半径,如(2,2)"/>
<Attribute name="width" default="stretch" type="INT | STRING" comment="可以设置INT或STRING类型的值.当值为INT是则设置控件的最⼩宽度,如(100);当值为ST <Attribute name="height" default
="stretch" type="INT | STRING" comment="可以设置INT或STRING类型的值.当值为INT是则设置控件的最⼩⾼度,如(100);当值为S <Attribute name="minwidth" default="-1" type="INT" comment="控件的最⼩宽度,如(30)"/>
<Attribute name="minheight" default="-1" type="INT" comment="控件的最⼩⾼度,如(30)"/>
<Attribute name="maxwidth" default="9999999" type="INT | STRING" comment="控件的最⼤宽度,描述同width"/>
<Attribute name="maxheight" default="9999999" type="INT | STRING" comment="控件的最⼤⾼度,描述同height"/>
<Attribute name="bkimage" default="" type="STRING" comment="背景图⽚,如(bk.bmp或file='aaa.jpg' res='' dest='0,0,0,0' source='0,0,0,0' corner='0,0,0,0' fade=
<Attribute name="tooltiptext" default="" type="STRING" comment="⿏标悬浮提⽰,如(请在这⾥输⼊你的密码)"/>
<Attribute name="tooltiptextid" default="" type="STRING" comment="⿏标悬浮提⽰,指定多语⾔模块的ID,当tooltiptext为空时则显⽰此属性,如(TOOL_TIP_ID)"/>
<Attribute name="dataid" default="" type="STRING" comment="⾃定义字符串数据,辅助函数,供⽤户使⽤"/>
<Attribute name="enabled" default="true" type="BOOL" comment="是否可以响应⽤户操作,如(true)"/>
<Attribute name="mou" default="true" type="BOOL" comment="本控件是否可以响应⿏标操作,如(true)"/>
<Attribute name="keyboard" default="true" type="BOOL" comment="⾮CButtonUI类忽略该值,为fal时不⽀持TAB_STOP,且该对象不处理键盘信息"/>
<Attribute name="visible" default="true" type="BOOL" comment="是否可见,如(true)"/>
<Attribute name="fadevisible" default="true" type="BOOL" comment="是否可见,如(true),此属性会触发控件动画效果"/>
<Attribute name="float" default="fal" type="BOOL" comment="是否使⽤绝对定位,如(true)"/>
<Attribute name="menu" default="fal" type="BOOL" comment="是否需要右键菜单,如(true)"/>
<Attribute name="nofocus" default="fal" type="BOOL" comment="是否可以获取焦点,如(true)"/>
<Attribute name="alpha" default="255" type="INT" comment="控件的整体透明度,如(128)"/>
<Attribute name="state" default="normal" type="STRING" comment="控件的当前状态,⽀持normal、hot、pushed、disabled状态"/>
<Attribute name="cursortype" default="arrow" type="STRING" comment="⿏标移动到控件上时的⿏标光标,arrow、hand、ibeam"/>
<Attribute name="normalimage" default="" type="STRING" comment="普通状态图⽚"/>
<Attribute name="hotimage" default="" type="STRING" comment="⿏标悬浮的状态图⽚"/>
<Attribute name="pushedimage" default="" type="STRING" comment="⿏标按下的状态图⽚"/>
<Attribute name="disabledimage" default="" type="STRING" comment="禁⽤的状态图⽚"/>
<Attribute name="forenormalimage" default="" type="STRING" comment="普通状态前景图⽚"/>
<Attribute name="forehotimage" default="" type="STRING" comment="⿏标悬浮的状态前景图⽚"/>
<Attribute name="forepushedimage" default="" type="STRING" comment="⿏标按下的状态前景图⽚"/>
<Attribute name="foredisabledimage" default="" type="STRING" comment="禁⽤的状态前景图⽚"/>
<Attribute name="renderofft" default="0,0" type="SIZE" comment="控件绘制时的偏移量,如(10,10),⼀般⽤于绘制动画"/>
<Attribute name="fadealpha" default="fal" type="BOOL" comment="是否启⽤控件透明渐变动画,如(true)"/>
<Attribute name="fadehot" default="fal" type="BOOL" comment="是否启⽤控件悬浮状态下的透明渐变动画,如(true)"/>
<Attribute name="fadewidth" default="fal" type="BOOL" comment="是否启⽤控件宽度渐变动画,如(true)"/>
<Attribute name="fadeheight" default="fal" type="BOOL" comment="是否启⽤控件⾼度渐变动画,如(true)"/>
<Attribute name="fadeinoutxfromleft" default="fal" type="BOOL" comment="是否启⽤控件从左到右的动画,如(true)"/>
<Attribute name="fadeinoutxfromright" default="fal" type="BOOL" comment="是否启⽤控件从右到左的动画,如(true)"/>
<Attribute name="fadeinoutyfromtop" default="fal" type="BOOL" comment="是否启⽤控件从上到下的动画,如(true)"/>
<Attribute name="fadeinoutyfrombottom" default="fal" type="BOOL" comment="是否启⽤控件从下到上的动画,如(true)"/>
</Control>
<Label parent="Control" notifies="暂时不写" >
澳门怎么叫濠江<Attribute name="width" default="auto" type="INT | STRING" comment="可以设置INT或STRING类型的值.当值为INT是则设置控件的最⼩宽度,如(100);当值为STR <Attribute name="height" default="auto" type="INT | STRING" comment="可以设置INT或STRING类型的值.当值为INT是则设置控件的最⼩⾼度,如(100);当值为STR
<Attribute name="text" default="" type="STRING" comment="显⽰⽂本,如(测试⽂本)"/>
<Attribute name="textid" default="" type="STRING" comment="多语⾔功能的ID,如(TEXT_OUT)"/>
<Attribute name="align" default="left" type="STRING" comment="⽂本的输出位置,如(center),⽀持left、center、right、top、vcenter、bottom"/> <Attribute name="font" default="-1" type="INT" comment="字体id,如(0)"/>
<Attribute name="endellipsis" default="fal" type="BOOL" comment="句末显⽰不完是否使⽤...代替,如(true)"/>
<Attribute name="textpadding" default="0,0,0,0" type="RECT" comment="⽂字显⽰的边距,如(2,2,2,2)"/>
<Attribute name="normaltextcolor" default="" type="STRING" comment="普通字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="hottextcolor" default="" type="STRING" comment="⿏标悬浮字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="pushedtextcolor" default="" type="STRING" comment="⿏标按下字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="disabledtextcolor" default="" type="STRING" comment="disabled字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="linelimit" default="fal" type="BOOL" comment="是否限制正⾏输出,如(true)"/>
<Attribute name="singleline" default="true" type="BOOL" comment="是否单⾏输出⽂字,如(true)"/>
</Label>
<LabelBox parent="Box" notifies="暂时不写" comment="属性同Label">
</LabelBox>
<Button parent="Label" notifies="暂时不写" comment="属性同Label">
</Button>
<ButtonBox parent="LabelBox" notifies="暂时不写" comment="属性同Label">
</ButtonBox>
<CheckBox parent="Button" notifies="暂时不写" >
<Attribute name="lected" default="fal" type="BOOL" comment="是否选中"/>
<Attribute name="lectednormalimage" default="" type="STRING" comment="选中的普通状态图⽚"/>
<Attribute name="lectedhotimage" default="" type="STRING" comment="选中的⿏标悬浮的状态图⽚"/>
<Attribute name="lectedpushedimage" default="" type="STRING" comment="选中的⿏标按下的状态图⽚"/>
<Attribute name="lecteddisabledimage" default="" type="STRING" comment="选中的禁⽤的状态图⽚"/>
<Attribute name="lectedtextcolor" default="" type="STRING" comment="选中状态字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="lectednormalcolor" default="" type="STRING" comment="选中的普通状态字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="lectedhotcolor" default="" type="STRING" comment="选中的⿏标悬浮状态字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="lectedpushedcolor" default="" type="STRING" comment="选中的⿏标按下状态字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/> <Attribute name="lecteddisabledcolor" default="" type="STRING" comment="选中的禁⽤状态字体颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="lectedforenormalimage" default="" type="STRING" comment="选中的前景图⽚"/>
<Attribute name="lectedforehotimage" default="" type="STRING" comment="选中的⿏标悬浮状态的图⽚"/>
<Attribute name="lectedforepushedimage" default="" type="STRING" comment="选中的⿏标按下状态的前景图⽚"/>
<Attribute name="lectedforedisabledimage" default="" type="STRING" comment="选中的禁⽤状态
的前景图⽚"/>
</CheckBox>
<CheckBoxBox parent="ButtonBox" notifies="暂时不写" comment="属性同CheckBox" >
</CheckBoxBox>
<Option parent="CheckBox" notifies="暂时不写" >
<Attribute name="group" default="" type="STRING" comment="所属组的名称"/>
</Option>
<OptionBox parent="CheckBox" notifies="暂时不写" comment="属性同Option" >
</OptionBox>
<Progress parent="Label" notifies="暂时不写" >
<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)"/>
<Attribute name="isstretchfore" default="TRUE" type="BOOL" comment="指定进度条前景图⽚是否缩放显⽰"/>
<Attribute name="progresscolor" default="" type="STRING" comment="进度条前景颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="progressimage" default="" type="STRING" comment="进度条前景图⽚"/>
</Progress>
<Slider parent="Progress" notifies="暂时不写" >
<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="thumbsize" default="10,10" type="SIZE" comment="拖动滑块⼤⼩,如(10,10)"/>
<Attribute name="step" default="1" type="INT" comment="进度步长,如(1)"/>
<Attribute name="progressbarpadding" default="0,0,0,0" type="RECT" comment="滑动条绘制时缩⼩的内边距"/>
</Slider>
<ScrollBar parent="Control" notifies="暂时不写">
<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="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="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="fal" type="BOOL" comment="⽔平或垂直,如(true)"/>
<Attribute name="linesize" default="8" type="INT" comment="滚动⼀⾏的⼤⼩,如(8)"/>
<Attribute name="thumbminlength" default="30" type="INT" comment="滑块的最⼩长度"/>
<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)"/>
<Attribute name="autohidescroll" default="true" type="BOOL" comment="是否⾃动隐藏滚动条,如(true)"/>
</ScrollBar>
<Box parent="Control" notifies="暂时不写">
<Attribute name="padding" default="0,0,0,0" type="RECT" comment="内边距,如(2,2,2,2)"/>
<Attribute name="childmargin" default="0" type="INT" comment="⼦控件之间的额外距离,如(4)"/>
<Attribute name="mouchild" default="true" type="BOOL" comment="本控件的⼦控件是否可以响应⽤户操作,如(true)"/>
</Box>
<VBox parent="Box" notifies="暂时不写" comment="属性同Box" >
</VBox>
<HBox parent="Box" notifies="暂时不写" comment="属性同Box" >
</HBox>
对数函数性质<ChildBox parent="Box" notifies="暂时不写" >
<Attribute name="xmlfile" default="" type="STRING" comment="要嵌⼊的xml⽂件的地址,如(l)"/>
</ChildBox>
复活节几号<TabBox parent="Box" notifies="暂时不写" >
<Attribute name="fadeswitch" default="fal" type="BOOL" comment="当切换页⾯时是否使⽤动画效果,如(fal)"/>
<Attribute name="lectedid" default="0" type="INT" comment="默认选中的页⾯id,如(0)"/>
</TabBox>
<TileBox>
<Attribute name="columns" default="1" type="INT" comment="列数,如(4)"/>
<Attribute name="itemsize" default="0,0" type="SIZE" comment="⼦项固定⼤⼩,如(128,128)"/>
</TileBox>
<ScrollableBox parent="Box" notifies="暂时不写">
<Attribute name="vscrollbar" default="fal" type="BOOL" comment="是否使⽤竖向滚动条,如(true)"/>
<Attribute name="hscrollbar" default="fal" type="BOOL" comment="是否使⽤横向滚动条,如(true)"/>
<Attribute name="vscrollbarstyle" default="" type="STRING" comment="设置本容器的纵向滚动条的样式"/>
<Attribute name="hscrollbarstyle" default="" type="STRING" comment="设置本容器的横向滚动条的样式"/>
<Attribute name="scrollbarpadding" default="0,0,0,0" type="RECT" comment="滚动条的外边距,可以让滚动条不占满容器,如(2,2,2,2)"/> <Attribute name="vscrollunit" default="30" type="INT" comment="容器的纵向滚动条滚动步长,0代表使⽤默认步长"/>
<Attribute name="scrollbarfloat" default="true" type="BOOL" comment="容器的滚动条是否悬浮在⼦控件上⾯,如(true)"/>
<Attribute name="defaultdisplayscrollbar" default="true" type="BOOL" comment="暂时⽆⽤,未开发"/>
<Attribute name="holdend" default="fal" type="BOOL" comment="是否⼀直保持显⽰末尾位置,如(true)"/>
</ScrollableBox>
<ListContainerElement parent="OptionBox" notifies="暂时不写" comment="属性同OptionBox" >
</ListContainerElement>
<Combo parent="Box" notifies="暂时不写">
<Attribute name="dropbox" default="" type="STRING" comment="设置弹出框的样式,如(padding="1,1,1,1")"/>
<Attribute name="dropboxsize" default="0,150" type="SIZE" comment="弹出框⼤⼩设置"/>
<Attribute name="vscrollbar" default="fal" type="BOOL" comment="是否使⽤竖向滚动条,如(true)"/>
</Combo>
<ListBox parent="ScrollableBox" notifies="暂时不写">
<Attribute name="scrolllect" default="fal" type="BOOL" comment="是否随滚动改变选中项,如(fal)"/>
班主任工作计划高中</ListBox>
<HListBox parent="ScrollableBox" notifies="暂时不写" comment="属性同ListBox">
</HListBox>
<VListBox parent="ScrollableBox" notifies="暂时不写" comment="属性同ListBox">
</VListBox>
<TileListBox parent="ScrollableBox" notifies="暂时不写" comment="属性同ListBox">
</TileListBox>
<TreeNode parent="ListContainerElement" notifies="暂时不写" comment="属性同OptionBox">
</TreeNode>
<TreeView parent="ListBox" notifies="暂时不写" >
<Attribute name="indent" default="0" type="INT" comment="⼦控件的缩进,如(3)"/>
王者荣耀钟馗台词</TreeView>
<RichEdit parent="Box" notifies="tfocus killfocus timer menu return windowinit(root)">
<Attribute name="vscrollbar" default="fal" type="BOOL" comment="是否使⽤竖向滚动条,如(true)"/>
<Attribute name="autovscroll" default="fal" type="BOOL" comment="是否随输⼊竖向滚动,如(true)"/>
<Attribute name="hscrollbar" default="fal" type="BOOL" comment="是否使⽤横向滚动条,如(true)"/>
<Attribute name="autohscroll" default="fal" type="BOOL" comment="是否随输⼊横向滚动,如(true)"/>
<Attribute name="wanttab" default="true" type="BOOL" comment="是否接受tab按键消息,如(true)"/>
<Attribute name="wantreturnmsg" default="true" type="BOOL" comment="是否接受return按键消息,如(true)"/>
<Attribute name="returnmsgwantctrl" default="true" type="BOOL" comment="是否接受ctrl+return按键消息,如(true)"/>
<Attribute name="rich" default="true" type="BOOL" comment="是否使⽤富格式,如(true)"/>
<Attribute name="multiline" default="true" type="BOOL" comment="是否使⽤多⾏,如(true)"/>
<Attribute name="readonly" default="fal" type="BOOL" comment="是否只读,如(fal)"/>
<Attribute name="password" default="fal" type="BOOL" comment="是否显⽰密码符,如(true)"/>
<Attribute name="number" default="fal" type="BOOL" comment="是否只允许输⼊数字,如(fal)"/>
<Attribute name="align" default="left" type="STRING" comment="⽂字对齐⽅式,取值left、right、hcenter、top、vcenter、bottom,如(right)"/> <Attribute name="text" default="" type="STRING" comment="显⽰⽂本,如(测试⽂本)"/>
<Attribute name="font" default="-1" type="INT" comment="字体id,如(0)"/>
<Attribute name="normaltextcolor" default="" type="STRING" comment="普通状态⽂字颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="disabledtextcolor" default="" type="STRING" comment="禁⽤状态⽂字颜⾊,不指定则使⽤默认颜⾊,如(blue)"/>
<Attribute name="promptmode" default="fal" type="BOOL" comment="是否显⽰提⽰⽂字,如(true)"/>
<Attribute name="prompttext" default="" type="STRING" comment="⽂本框内提⽰⽂字,当⽂本框text为空时显⽰"/>
<Attribute name="prompttextid" default="" type="STRING" comment="多语⾔功能的ID,如(TEXT_OUT)"/>
<Attribute name="promptcolor" default="" type="STRING" comment="⽂本框内提⽰⽂字的颜⾊"/>
</RichEdit>
</Controls>
本⽂转载⾃: