duilib xml配置

前端之家收集整理的这篇文章主要介绍了duilib xml配置前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
DUILib xml配置项
@H_403_4@ 根节点 子类 属性 类型
@H_403_4@ Window
@H_403_4@ |--------Image 图片信息
@H_403_4@ | o------name string
@H_403_4@ | o------restype string
@H_403_4@ | o------mask unsigned long#
@H_403_4@ |
@H_403_4@ |--------Font 字体信息 @H_403_4@ | o------size long @H_403_4@ | o------bold bool @H_403_4@ | o------underline bool @H_403_4@ | o------default bool @H_403_4@ |--------Default 默认Attribute属性 @H_403_4@ o------name string @H_403_4@ o------value string @H_403_4@ @H_403_4@ root(Window属性) @H_403_4@ o--size 窗体初始化大小 SIZE(int cx,int cy) @H_403_4@ o--sizeBox 窗体区域 RECT(long left,long top,long right,long bottom) @H_403_4@ o--caption 窗体标题栏区域 RECT(long left,51)"> o--roundcorner 圆角大小 SIZE(int cx,51)"> o--mininfo 窗体最小大小 SIZE(int cx,51)"> o--maxinfo 窗体最大大小 SIZE(int cx,51)"> o--showdirty 窗体显示 bool [true|false] @H_403_4@ o--alpha 窗体透明度 int @H_403_4@ o--bktrans 背景是否支持透明 bool [true|false] @H_403_4@ o--disabledfontcolor 无效字体颜色 string #RRGGBBAA @H_403_4@ o--defaultfontcolor 默认字体颜色 string #RRGGBBAA @H_403_4@ o--linkfontcolor 链接正常字体色 string #RRGGBBAA @H_403_4@ o--linkhoverfontcolor链接悬停字体色 string #RRGGBBAA @H_403_4@ o--selectedcolor 字体被选后颜色 string #RRGGBBAA @H_403_4@ 公共资源 @H_403_4@ Image @H_403_4@ |------o file/res string @H_403_4@ |------o restype string @H_403_4@ |------o dest RECT(long left,51)"> |------o source RECT(long left,51)"> |------o corner RECT(long left,51)"> |------o mask string #FFFFFFFF @H_403_4@ |------o fade byte @H_403_4@ |------o hole bool [true|false] @H_403_4@ |------o xtiled bool [true|false] @H_403_4@ |------o ytiled bool [true|false] @H_403_4@ 使用说明: @H_403_4@ // 1、aaa.jpg @H_403_4@ // 2、file='aaa.jpg' res='' restype='0' dest='0,0' source='0,0' corner='0,0' @H_403_4@ // mask='#FF0000' fade='255' hole='false' xtiled='false' ytiled='false' @H_403_4@
@H_403_4@ @H_403_4@ Font @H_403_4@ Default @H_403_4@ 控件Control @H_403_4@ 控件名称 @H_403_4@ 控件基类 @H_403_4@ Control CControlUI @H_403_4@ |------o pos RECT(long left,51)"> |------o relativepos (int nMoveXPercent,int nMoveYPercent,int nZoomXPercent,int nZoomYPercent) @H_403_4@ |------o padding RECT(long left,51)"> |------o bkcolor/bkcolor1 string #RRGGBBAA @H_403_4@ |------o bkcolor2 string #RRGGBBAA @H_403_4@ |------o bkcolor3 string #RRGGBBAA @H_403_4@ |------o bordercolor string #RRGGBBAA @H_403_4@ |------o focusbordercolor string #RRGGBBAA @H_403_4@ |------o bordersize int @H_403_4@ |------o borderround SIZE(int x,int y) @H_403_4@ |------o bkimage Image 属性 @H_403_4@ |------o width int @H_403_4@ |------o height int @H_403_4@ |------o minwidth int @H_403_4@ |------o minheight int @H_403_4@ |------o maxwidth int @H_403_4@ |------o maxheight int @H_403_4@ |------o name string @H_403_4@ |------o text string @H_403_4@ |------o tooltip string @H_403_4@ |------o userdata string @H_403_4@ |------o enabled bool [true|false] @H_403_4@ |------o mouse bool [true|false] @H_403_4@ |------o visible bool [true|false] @H_403_4@ |------o float bool [true|false] @H_403_4@ |------o shortcut TCHAR @H_403_4@ |------o menu bool [true|false] @H_403_4@ 容器 @H_403_4@ Container CContainerUI @H_403_4@ |------o inset RECT(long left,51)"> |------o mousechild bool [true|false] @H_403_4@ |------o vscrollbar bool [true|false] @H_403_4@ |------o hscrollbar bool [true|false] @H_403_4@ |------o childpadding int @H_403_4@ 布局管理器 @H_403_4@ VerticalLayout CVerticalLayoutUI : public CContainerUI @H_403_4@ |------o sepheight int @H_403_4@ |------o sepimm bool [true|false] @H_403_4@ |------o CContainerUI::SetAttribute(pstrName,pstrValue) @H_403_4@ HorizontalLayout CHorizontalLayoutUI : public CContainerUI @H_403_4@ |------o sepwidth int @H_403_4@ DialogLayout CDialogLayoutUI : public CContainerUI @H_403_4@ TileLayout CTitleLayoutUI : public CContainerUI @H_403_4@ |------o columns int @H_403_4@ TabLayout CTabLayoutUI : public CContainerUI @H_403_4@ |------o selectedid int @H_403_4@ Edit CEditUI : public CLabelUI @H_403_4@ |------o readonly bool [true|false] @H_403_4@ |------o password bool [true|false] @H_403_4@ |------o maxchar int @H_403_4@ |------o normalimage Image 属性 @H_403_4@ |------o hotimage Image 属性 @H_403_4@ |------o focusedimage Image 属性 @H_403_4@ |------o disabledimage Image 属性 @H_403_4@ |------o nativebkcolor string #RRGGBBAA @H_403_4@ |------o CLabelUI::SetAttribute(pstrName,51)"> List CListUI : public CVerticalLayoutUI,public IListUI @H_403_4@ |------o header string bool [hidden|Show] @H_403_4@ |------o headerbkimage string path @H_403_4@ |------o scrollselect bool [true|false] @H_403_4@ |------o multiexpanding bool [true|false] @H_403_4@ |------o itemfont int Font列表的索引号 @H_403_4@ |------o itemalign string enum [left|center|right] @H_403_4@ |------o itemendellipsis bool [true|false] @H_403_4@ |------o itemtextpadding RECT(long left,51)"> |------o itemtextcolor string #RRGGBBAA @H_403_4@ |------o itembkcolor string #RRGGBBAA @H_403_4@ |------o itemimage string path @H_403_4@ |------o itemselectedtextcolor string #RRGGBBAA @H_403_4@ |------o itemselectedbkcolor string #RRGGBBAA @H_403_4@ |------o itemselectedimage string path @H_403_4@ |------o itemhottextcolor string #RRGGBBAA @H_403_4@ |------o itemhotbkcolor string #RRGGBBAA @H_403_4@ |------o itemhotimage Image 属性 @H_403_4@ | |------o file string path @H_403_4@ | |------o corner RECT(long left,51)"> |------o itemdisabledtextcolor string #RRGGBBAA @H_403_4@ |------o itemdisabledbkcolor string #RRGGBBAA @H_403_4@ |------o itemdisabledimage Image 属性 @H_403_4@ |------o itemlinecolor string #RRGGBBAA @H_403_4@ |------o itemshowhtml bool [true|false] @H_403_4@ |------o CVerticalLayoutUI::SetAttribute(pstrName,51)"> ListHeaderItem CListHeaderItemUI : public CControlUI @H_403_4@ |------o dragable bool [true|false] @H_403_4@ |------o align string enum [left|center|right] @H_403_4@ |------o endellipsis bool [true|false] @H_403_4@ |------o font int Font列表的索引号 @H_403_4@ |------o textcolor string #RRGGBBAA @H_403_4@ |------o textpadding RECT(long left,51)"> |------o showhtml bool [true|false] @H_403_4@ |------o pushedimage Image 属性 @H_403_4@ |------o sepimage Image 属性 @H_403_4@ CListElementUI : public CControlUI,public IListItemUI @H_403_4@ |------o selected value 有此属性就选中 @H_403_4@ |------o CControlUI::SetAttribute(pstrName,pstrValue) @H_403_4@ ListExpandElement CListExpandElementUI : public CListTextElementUI @H_403_4@ |------o expander RECT(long left,51)"> |------o hideself bool [true|false] @H_403_4@ |------o selected bool @H_403_4@ |------o CListTextElementUI::SetAttribute(pstrName,51)"> ListContainerElement CListContainerElementUI List容器 @H_403_4@ ListHeader CListHeaderUI @H_403_4@ CListLabelElementUI : public CListElementUI @H_403_4@ ListTextElement CListTextElementUI : public CListLabelElementUI @H_403_4@ @H_403_4@ Label CLabelUI : public CControlUI @H_403_4@ |------o disabledtextcolor string #RRGGBBAA @H_403_4@ |------o CControlUI::SetAttribute( pstrName,pstrValue ) @H_403_4@ Text CTextUI : public CLabelUI @H_403_4@ Combo CComboUI : public CContainerUI,public IListOwnerUI @H_403_4@ |------o dropBox string @H_403_4@ |------o itemimage Image 属性 @H_403_4@ |------o itemselectedimage Image 属性 @H_403_4@ Button CButtonUI : public CLabelUI @H_403_4@ |------o hottextcolor string #RRGGBBAA @H_403_4@ |------o pushedtextcolor string #RRGGBBAA @H_403_4@ |------o focusedtextcolor string #RRGGBBAA @H_403_4@ Option COptionUI : public CButtonUI @H_403_4@ |------o group string @H_403_4@ |------o selected bool [true|false] @H_403_4@ |------o selectedimage Image 属性 @H_403_4@ |------o foreimage Image 属性 @H_403_4@ |------o selectedtextcolor string #RRGGBBAA @H_403_4@ |------o CButtonUI::SetAttribute(pstrName,51)"> Progress CProgressUI : public CLabelUI @H_403_4@ |------o fgimage Image 属性 @H_403_4@ |------o hor bool @H_403_4@ |------o min int @H_403_4@ |------o max int @H_403_4@ |------o value int @H_403_4@ Slider CSliderUI : public CProgressUI @H_403_4@ |------o thumbimage Image 属性 @H_403_4@ |------o thumbhotimage Image 属性 @H_403_4@ |------o thumbpushedimage Image 属性 @H_403_4@ |------o thumbsize SIZE(int x,51)"> |------o step int @H_403_4@ |------o CProgressUI::SetAttribute(pstrName,pstrValue) @H_403_4@ RichEdit CRichEditUI : public CContainerUI,public IMessageFilterUI @H_403_4@ |------o autovscroll bool [true|false] @H_403_4@ |------o autohscroll bool [true|false] @H_403_4@ |------o wanttab bool [true|false] @H_403_4@ |------o wantreturn bool [true|false] @H_403_4@ |------o wantctrlreturn bool [true|false] @H_403_4@ |------o rich bool [true|false] @H_403_4@ |------o multiline bool [false|true] @H_403_4@ |------o numberonly bool [true|false] @H_403_4@ ActiveX CActiveXUI : public CControlUI @H_403_4@ |------o clsid string @H_403_4@ |------o modulename string @H_403_4@ |------o delaycreate bool [true|false] @H_403_4@ ScrollBar CScrollBarUI : public CControlUI @H_403_4@ |------o button1normalimage Image 属性 @H_403_4@ |------o button1hotimage Image 属性 @H_403_4@ |------o button1pushedimage Image 属性 @H_403_4@ |------o button1disabledimage Image 属性 @H_403_4@ |------o button2normalimage Image 属性 @H_403_4@ |------o button2hotimage Image 属性 @H_403_4@ |------o button2pushedimage Image 属性 @H_403_4@ |------o button2disabledimage Image 属性 @H_403_4@ |------o thumbnormalimage Image 属性 @H_403_4@ |------o thumbdisabledimage Image 属性 @H_403_4@ |------o railnormalimage Image 属性 @H_403_4@ |------o railhotimage Image 属性 @H_403_4@ |------o railpushedimage Image 属性 @H_403_4@ |------o raildisabledimage Image 属性 @H_403_4@ |------o bknormalimage Image 属性 @H_403_4@ |------o bkhotimage Image 属性 @H_403_4@ |------o bkpushedimage Image 属性 @H_403_4@ |------o bkdisabledimage Image 属性 @H_403_4@ |------o hor bool [true|false] @H_403_4@ |------o linesize int @H_403_4@ |------o range int @H_403_4@ |------o showbutton1 bool [true|false] @H_403_4@ |------o showbutton2 bool [true|false] @H_403_4@ 控件的通用属性 @H_403_4@ stretch STRETCHMODE @H_403_4@ o--------move_x @H_403_4@ o--------move_y @H_403_4@ o--------move_xy @H_403_4@ o--------size_x @H_403_4@ o--------size_y @H_403_4@ o--------size_xy @H_403_4@ o--------group @H_403_4@ o--------line @H_403_4@ 考虑到在xml编辑器中使用<>符号不方便,可以使用{}符号代替 @H_403_4@ 支持标签嵌套(如<l><b>text</b></l>),但是交叉嵌套是应该避免的(如<l><b>text</l></b>) @H_403_4@ The string formatter supports a kind of "mini-html" that consists of varIoUs short tags: @H_403_4@ Bold: <b>text</b> @H_403_4@ Color: <c #xxxxxx>text</c> where x = RGB in hex @H_403_4@ Font: <f x>text</f> where x = font id @H_403_4@ Italic: <i>text</i> @H_403_4@ Image: <i x y z> where x = image name and y = imagelist num and z(optional) = imagelist id @H_403_4@ Link: <a x>text</a> where x(optional) = link content,normal like app:notepad or http:www.xxx.com @H_403_4@ NewLine <n> @H_403_4@ Paragraph: <p x>text</p> where x = extra pixels indent in p @H_403_4@ Raw Text: <r>text</r> @H_403_4@ Selected: <s>text</s> @H_403_4@ Underline: <u>text</u> @H_403_4@ X Indent: <x i> where i = hor indent in pixels @H_403_4@ Y Indent: <y i> where i = ver indent in pixels 原文链接:https://www.f2er.com/xml/299994.html

猜你在找的XML相关文章