青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆-380  評論-37  文章-0  trackbacks-0
DUILib xml配置項(xiàng)
根節(jié)點(diǎn)        子類      屬性                            類型
Window                                                         
    |--------Image      圖片信息
    |            o------name                            string
    |            o------restype                         string
    |            o------mask                            unsigned long#
    |
    |--------Font            字體信息
    |            o------name                            string
    |            o------size                            long
    |            o------bold                            bool
    |            o------underline                       bool
    |            o------default                         bool
    |
    |--------Default    默認(rèn)Attribute屬性
                 o------name                            string
                 o------value                           string
    
root(Window屬性)
    o--size              窗體初始化大小                 SIZE(int cx, int cy)
    o--sizebox           窗體區(qū)域                       RECT(long left, long top, long right,long bottom)
    o--caption           窗體標(biāo)題欄區(qū)域                 RECT(long left, long top, long right,long bottom)
    o--roundcorner       圓角大小                       SIZE(int cx, int cy)
    o--mininfo           窗體最小大小                   SIZE(int cx, int cy)
    o--maxinfo           窗體最大大小                   SIZE(int cx, int cy)
    o--showdirty         窗體顯示                       bool [true|false]
    o--alpha             窗體透明度                     int
    o--bktrans           背景是否支持透明               bool [true|false]
    o--disabledfontcolor 無效字體顏色                   string  #RRGGBBAA
    o--defaultfontcolor  默認(rèn)字體顏色                   string     #RRGGBBAA
    o--linkfontcolor     鏈接正常字體色                 string     #RRGGBBAA
    o--linkhoverfontcolor鏈接懸停字體色                 string     #RRGGBBAA
    o--selectedcolor     字體被選后顏色                 string     #RRGGBBAA
    
公共資源
Image
    |------o file/res                                   string
    |------o restype                                    string
    |------o dest                                       RECT(long left, long top, long right,long bottom)
    |------o source                                     RECT(long left, long top, long right,long bottom)
    |------o corner                                     RECT(long left, long top, long right,long bottom)
    |------o mask                                       string #FFFFFFFF
    |------o fade                                       byte
    |------o hole                                       bool [true|false]
    |------o xtiled                                     bool [true|false]
    |------o ytiled                                     bool [true|false]
使用說明:
    // 1、aaa.jpg
    // 2、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'    

                                                    
Font
Default    

控件Control

控件名稱                                類

控件基類
Control                             CControlUI   
    |------o pos                                        RECT(long left, long top, long right,long bottom)
    |------o relativepos                                (int nMoveXPercent, int nMoveYPercent,int nZoomXPercent,int nZoomYPercent)
    |------o padding                                    RECT(long left, long top, long right,long bottom)
    |------o bkcolor/bkcolor1                           string #RRGGBBAA
    |------o bkcolor2                                   string #RRGGBBAA
    |------o bkcolor3                                   string #RRGGBBAA
    |------o bordercolor                                string #RRGGBBAA
    |------o focusbordercolor                           string #RRGGBBAA
    |------o bordersize                                 int 
    |------o borderround                                SIZE(int x, int y)
    |------o bkimage                                    Image 屬性
    |------o width                                      int
    |------o height                                     int
    |------o minwidth                                   int
    |------o minheight                                  int
    |------o maxwidth                                   int
    |------o maxheight                                  int
    |------o name                                       string
    |------o text                                       string
    |------o tooltip                                    string
    |------o userdata                                   string
    |------o enabled                                    bool [true|false]
    |------o mouse                                      bool [true|false]
    |------o visible                                    bool [true|false]
    |------o float                                      bool [true|false]
    |------o shortcut                                   TCHAR
    |------o menu                                       bool [true|false]
    
    
    
容器
Container                            CContainerUI
    |------o inset                                      RECT(long left, long top, long right,long bottom)
    |------o mousechild                                 bool [true|false]
    |------o vscrollbar                                 bool [true|false]
    |------o hscrollbar                                 bool [true|false]
    |------o childpadding                               int
    
布局管理器
VerticalLayout                      CVerticalLayoutUI : public  CContainerUI
    |------o sepheight                                  int
    |------o sepimm                                     bool [true|false]
    |------o CContainerUI::SetAttribute(pstrName, pstrValue)
    
HorizontalLayout                    CHorizontalLayoutUI : public  CContainerUI
    |------o sepwidth                                   int
    |------o sepimm                                     bool [true|false]
    |------o CContainerUI::SetAttribute(pstrName, pstrValue)

DialogLayout                        CDialogLayoutUI : public  CContainerUI
    |------o CContainerUI::SetAttribute(pstrName, pstrValue)
    
TileLayout                          CTitleLayoutUI : public  CContainerUI
    |------o columns                                    int
    |------o CContainerUI::SetAttribute(pstrName, pstrValue)
    
TabLayout                           CTabLayoutUI : public CContainerUI
    |------o selectedid                                 int
    |------o CContainerUI::SetAttribute(pstrName, pstrValue)


    
    

Edit                                CEditUI : public CLabelUI
    |------o readonly                                   bool [true|false]
    |------o password                                   bool [true|false]
    |------o maxchar                                    int
    |------o normalimage                                Image 屬性
    |------o hotimage                                   Image 屬性
    |------o focusedimage                               Image 屬性
    |------o disabledimage                              Image 屬性
    |------o nativebkcolor                              string #RRGGBBAA
    |------o CLabelUI::SetAttribute(pstrName, pstrValue)

List                                CListUI : public CVerticalLayoutUI, public IListUI
    |------o header                                     string bool [hidden|Show]
    |------o headerbkimage                              string path
    |------o scrollselect                               bool [true|false]
    |------o multiexpanding                             bool [true|false]
    |------o itemfont                                   int     Font列表的索引號
    |------o itemalign                                  string enum [left|center|right]
    |------o itemendellipsis                            bool [true|false]
    |------o itemtextpadding                            RECT(long left, long top, long right,long bottom)
    |------o itemtextcolor                              string #RRGGBBAA
    |------o itembkcolor                                string #RRGGBBAA
    |------o itemimage                                  string path
    |------o itemselectedtextcolor                      string #RRGGBBAA
    |------o itemselectedbkcolor                        string #RRGGBBAA
    |------o itemselectedimage                          string path
    |------o itemhottextcolor                           string #RRGGBBAA
    |------o itemhotbkcolor                             string #RRGGBBAA
    |------o itemhotimage                               Image 屬性
    |            |------o file                          string path
    |            |------o corner                        RECT(long left, long top, long right,long bottom)
    |------o itemdisabledtextcolor                      string #RRGGBBAA
    |------o itemdisabledbkcolor                        string #RRGGBBAA
    |------o itemdisabledimage                          Image 屬性
    |------o itemlinecolor                              string #RRGGBBAA
    |------o itemshowhtml                               bool [true|false]
    |------o CVerticalLayoutUI::SetAttribute(pstrName, pstrValue)
    
ListHeaderItem                      CListHeaderItemUI : public CControlUI
    |------o dragable                                   bool [true|false]
    |------o sepwidth                                   int
    |------o align                                      string enum [left|center|right]
    |------o itemshowhtml                               bool [true|false]
    |------o endellipsis                                bool [true|false]
    |------o font                                       int     Font列表的索引號
    |------o textcolor                                  string #RRGGBBAA
    |------o textpadding                                RECT(long left, long top, long right,long bottom)
    |------o showhtml                                   bool [true|false]
    |------o normalimage                                Image 屬性
    |------o hotimage                                   Image 屬性
    |------o pushedimage                                Image 屬性
    |------o focusedimage                               Image 屬性
    |------o sepimage                                   Image 屬性
    
CListElementUI : public CControlUI, public IListItemUI
    |------o selected                                   value 有此屬性就選中 
    |------o CControlUI::SetAttribute(pstrName, pstrValue)  
    
ListExpandElement                   CListExpandElementUI : public CListTextElementUI    
    |------o expander                                   RECT(long left, long top, long right,long bottom)
    |------o hideself                                   bool [true|false]
    |------o selected                                   bool
    |------o CListTextElementUI::SetAttribute(pstrName, pstrValue)
    
ListContainerElement                CListContainerElementUI            List容器
    |------o selected                                   value 有此屬性就選中
    
ListHeader                          CListHeaderUI

CListLabelElementUI : public CListElementUI


ListTextElement                     CListTextElementUI : public CListLabelElementUI
          


Label                               CLabelUI : public  CControlUI
    |------o align                                      string enum [left|center|right]
    |------o endellipsis                                bool [true|false]
    |------o font                                       int     Font列表的索引號
    |------o textcolor                                  string #RRGGBBAA
    |------o disabledtextcolor                          string #RRGGBBAA
    |------o textpadding                                RECT(long left, long top, long right,long bottom)
    |------o showhtml                                   bool [true|false]
    |------o CControlUI::SetAttribute( pstrName, pstrValue )
    
    
Text                                CTextUI : public  CLabelUI

Combo                               CComboUI : public CContainerUI, public IListOwnerUI
    |------o textpadding                                RECT(long left, long top, long right,long bottom)
    |------o normalimage                                Image 屬性
    |------o hotimage                                   Image 屬性
    |------o pushedimage                                Image 屬性
    |------o focusedimage                               Image 屬性
    |------o disabledimage                              Image 屬性
    |------o dropbox                                    string 
    |------o itemfont                                   int     Font列表的索引號
    |------o itemalign                                  string enum [left|center|right]
    |------o itemtextpadding                            RECT(long left, long top, long right,long bottom)
    |------o itemtextcolor                              string #RRGGBBAA
    |------o itembkcolor                                string #RRGGBBAA
    |------o itemimage                                  Image 屬性
    |------o itemselectedtextcolor                      string #RRGGBBAA
    |------o itemselectedimage                          Image 屬性
    |------o itemhottextcolor                           string #RRGGBBAA
    |------o itemhotbkcolor                             string #RRGGBBAA
    |------o itemhotimage                               Image 屬性
    |------o itemdisabledtextcolor                      string #RRGGBBAA
    |------o itemdisabledbkcolor                        string #RRGGBBAA
    |------o itemdisabledimage                          Image 屬性
    |------o itemlinecolor                              string #RRGGBBAA
    |------o itemshowhtml                               bool [true|false]
    |------o CContainerUI::SetAttribute(pstrName, pstrValue)
    

Button                              CButtonUI : public CLabelUI
    |------o normalimage                                Image 屬性
    |------o hotimage                                   Image 屬性
    |------o pushedimage                                Image 屬性
    |------o focusedimage                               Image 屬性
    |------o disabledimage                              Image 屬性
    |------o hottextcolor                               string #RRGGBBAA
    |------o pushedtextcolor                            string #RRGGBBAA
    |------o focusedtextcolor                           string #RRGGBBAA
    |------o CLabelUI::SetAttribute(pstrName, pstrValue)
    
Option                              COptionUI : public CButtonUI
    |------o group                                      string
    |------o selected                                   bool [true|false]
    |------o selectedimage                              Image 屬性
    |------o foreimage                                  Image 屬性
    |------o selectedtextcolor                          string #RRGGBBAA
    |------o CButtonUI::SetAttribute(pstrName, pstrValue)

Progress                            CProgressUI : public  CLabelUI
    |------o fgimage                                    Image 屬性
    |------o hor                                        bool
    |------o min                                        int
    |------o max                                        int
    |------o value                                      int
    |------o CLabelUI::SetAttribute(pstrName, pstrValue)
    
Slider                              CSliderUI : public  CProgressUI
    |------o thumbimage                                 Image 屬性
    |------o thumbhotimage                              Image 屬性
    |------o thumbpushedimage                           Image 屬性
    |------o thumbsize                                  SIZE(int x, int y)
    |------o step                                       int
    |------o CProgressUI::SetAttribute(pstrName, pstrValue)    
    
RichEdit                            CRichEditUI : public CContainerUI, public IMessageFilterUI
    |------o vscrollbar                                 bool [true|false]
    |------o autovscroll                                bool [true|false]
    |------o hscrollbar                                 bool [true|false]
    |------o autohscroll                                bool [true|false]
    |------o wanttab                                    bool [true|false]
    |------o wantreturn                                 bool [true|false]
    |------o wantctrlreturn                             bool [true|false]
    |------o rich                                       bool [true|false]
    |------o multiline                                  bool [false|true]
    |------o readonly                                   bool [true|false]
    |------o numberonly                                 bool [true|false]
    |------o password                                   bool [true|false]
    |------o align                                      string enum [left|center|right]
    |------o font                                       int     Font列表的索引號
    |------o textcolor                                  string #RRGGBBAA
    |------o CContainerUI::SetAttribute(pstrName, pstrValue)


ActiveX                             CActiveXUI : public  CControlUI
    |------o clsid                                      string
    |------o modulename                                 string
    |------o delaycreate                                bool [true|false]
    |------o CControlUI::SetAttribute(pstrName, pstrValue)
    

ScrollBar                           CScrollBarUI : public CControlUI
    |------o button1normalimage                         Image 屬性
    |------o button1hotimage                            Image 屬性
    |------o button1pushedimage                         Image 屬性
    |------o button1disabledimage                       Image 屬性
    |------o button2normalimage                         Image 屬性
    |------o button2hotimage                            Image 屬性
    |------o button2pushedimage                         Image 屬性
    |------o button2disabledimage                       Image 屬性
    |------o thumbnormalimage                           Image 屬性
    |------o thumbhotimage                              Image 屬性
    |------o thumbpushedimage                           Image 屬性
    |------o thumbdisabledimage                         Image 屬性
    |------o railnormalimage                            Image 屬性
    |------o railhotimage                               Image 屬性
    |------o railpushedimage                            Image 屬性
    |------o raildisabledimage                          Image 屬性
    |------o bknormalimage                              Image 屬性
    |------o bkhotimage                                 Image 屬性
    |------o bkpushedimage                              Image 屬性
    |------o bkdisabledimage                            Image 屬性
    |------o hor                                        bool [true|false]
    |------o linesize                                   int
    |------o range                                      int
    |------o value                                      int
    |------o showbutton1                                bool [true|false]
    |------o showbutton2                                bool [true|false]
    |------o CControlUI::SetAttribute(pstrName, pstrValue)
    


控件的通用屬性
stretch        STRETCHMODE
    o--------move_x
    o--------move_y
    o--------move_xy
    o--------size_x
    o--------size_y
    o--------size_xy
    o--------group
    o--------line
    
    
考慮到在xml編輯器中使用<>符號不方便,可以使用{}符號代替
支持標(biāo)簽嵌套(如<l><b>text</b></l>),但是交叉嵌套是應(yīng)該避免的(如<l><b>text</l></b>)
The string formatter supports a kind of "mini-html" that consists of various short tags:

  Bold:             <b>text</b>
  Color:            <c #xxxxxx>text</c>  where x = RGB in hex
  Font:             <f x>text</f>        where x = font id
  Italic:           <i>text</i>
  Image:            <i x y z>            where x = image name and y = imagelist num and z(optional) = imagelist id
  Link:             <a x>text</a>        where x(optional) = link content, normal like app:notepad or http:www.xxx.com
  NewLine           <n>                  
  Paragraph:        <p x>text</p>        where x = extra pixels indent in p
  Raw Text:         <r>text</r>
  Selected:         <s>text</s>
  Underline:        <u>text</u>
  X Indent:         <x i>                where i = hor indent in pixels
  Y Indent:         <y i>                where i = ver indent in pixels 
posted on 2012-07-21 10:47 小王 閱讀(4527) 評論(2)  編輯 收藏 引用 所屬分類: UI

評論:
# re: DirectUI Lib XML編寫說明[未登錄] 2015-01-21 11:27 | king
很好,對于我這樣的初學(xué)者很用幫助,謝謝樓主  回復(fù)  更多評論
  
# re: DirectUI Lib XML編寫說明 2015-06-25 18:09 | dictbox
這個不錯,很有用。  回復(fù)  更多評論
  
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            99国产精品视频免费观看一公开| 久久久国产一区二区| 欧美黄网免费在线观看| 韩国av一区二区| 亚洲一区二区三区精品动漫| 欧美电影在线观看| 亚洲图色在线| 久久精品中文字幕免费mv| 午夜久久久久久| 亚洲日本aⅴ片在线观看香蕉| 欧美激情视频免费观看| 美女主播视频一区| 日韩午夜激情| 亚洲一区二区在| 亚洲第一在线综合在线| 欧美日韩在线视频一区二区| 欧美在线视频不卡| 99国产精品99久久久久久粉嫩| 国产乱码精品一区二区三| 一区在线播放视频| 亚洲欧洲日本国产| 欧美日韩精品是欧美日韩精品| 小处雏高清一区二区三区| 性欧美暴力猛交69hd| 亚洲国产黄色片| 国产欧美在线| 欧美日韩国产色视频| 免费av成人在线| 亚洲伊人久久综合| 久久不射电影网| 亚洲午夜久久久| 久久人人爽爽爽人久久久| 亚洲伊人观看| 欧美v国产在线一区二区三区| 欧美一区二区三区免费大片| 伊人久久综合97精品| 国产欧美一区二区精品忘忧草| 六月丁香综合| 欧美三级小说| 一区二区在线观看av| 一区二区三区日韩精品| 国产综合色产| 国内外成人在线视频| 日韩系列在线| 欧美 日韩 国产在线| 免费人成网站在线观看欧美高清| 香蕉免费一区二区三区在线观看 | 国产一区二区三区直播精品电影 | 欧美激情一区二区三区在线视频观看| 亚洲一区二区在线| 欧美高清视频www夜色资源网| 亚洲人久久久| 久久久噜噜噜久久| 久久综合色8888| 欧美xart系列高清| 一区二区欧美亚洲| 性色av一区二区怡红| 欧美色视频一区| 一区二区三区欧美日韩| 欧美激情一区二区三区四区| 久久影视三级福利片| 欧美成人综合一区| 狠狠做深爱婷婷久久综合一区| 伊人久久综合97精品| 欧美一区午夜精品| 亚洲成人在线网站| 蜜乳av另类精品一区二区| 久久久国产一区二区| 欧美精品一区二区精品网| 国产精品国产三级国产专区53 | 99在线视频精品| 欧美极品影院| 中文亚洲视频在线| 美国十次成人| 欧美伊久线香蕉线新在线| 国产午夜精品在线观看| 亚洲黄色性网站| 一本色道久久综合亚洲精品按摩 | 99精品欧美一区二区三区综合在线| 9色精品在线| 亚洲精品一区二区三区婷婷月| 欧美有码在线观看视频| 亚洲视频碰碰| 欧美xx69| 亚洲视屏一区| 亚洲一区国产一区| 狠狠色丁香婷婷综合久久片| 欧美成人国产一区二区| 欧美激情成人在线| 在线观看av一区| 亚洲国产精品视频| 久久久久久婷| 欧美片第1页综合| 韩日午夜在线资源一区二区| 久久综合久久综合这里只有精品 | 在线国产欧美| 亚洲激情偷拍| 玖玖视频精品| 亚洲少妇中出一区| 欧美一区二区免费观在线| 国产精品va在线| 亚洲人精品午夜| 在线视频日韩精品| 亚洲东热激情| 亚洲欧美日韩高清| 国产精品一区二区久久精品| 欧美福利一区二区| 国产精品美女久久久久久2018| 国产视频不卡| 欧美国产三区| 国产日韩欧美a| 亚洲精品永久免费| 亚洲激情视频网| 欧美专区日韩专区| 亚洲欧洲99久久| 欧美精品成人在线| 免费在线成人| 国内精品免费午夜毛片| 亚洲视频福利| 在线一区二区日韩| 欧美成人乱码一区二区三区| 在线免费观看日韩欧美| 日韩视频在线观看免费| 欧美精品在线免费播放| 久久婷婷国产综合精品青草| 欧美亚一区二区| 亚洲精选在线| 亚洲免费高清视频| 一区二区三区视频在线播放| 亚洲黄色av| 免费观看久久久4p| 男女av一区三区二区色多| 国产一区二区三区在线观看免费视频 | 极品少妇一区二区三区| 亚洲美女视频网| 99riav国产精品| 欧美激情亚洲另类| 亚洲国产美女| 亚洲国产美女精品久久久久∴| 亚洲国产欧美另类丝袜| 在线成人免费观看| 久久一区中文字幕| 久久成人一区二区| 久久久久五月天| 久久青青草综合| 伊人久久成人| 免费在线观看一区二区| 亚洲激情在线激情| 亚洲视频视频在线| 国产精品老牛| 香蕉久久一区二区不卡无毒影院 | 亚洲精品国产日韩| 欧美日韩亚洲另类| 久久久久久亚洲精品中文字幕| 久久精品日韩欧美| 久久精品99无色码中文字幕| 久久精品国产第一区二区三区最新章节| 国产亚洲a∨片在线观看| 亚洲欧美日韩精品| 老司机精品视频网站| 在线看片成人| 欧美日韩国语| 欧美一区网站| 欧美成人69av| 在线一区观看| 国模套图日韩精品一区二区| 久久婷婷激情| 宅男噜噜噜66一区二区| 久久综合给合久久狠狠狠97色69| 国产精品久久久一本精品| 亚洲一二三级电影| 免费在线看成人av| 亚洲一区二区三区精品在线观看| 日韩写真在线| 欧美亚洲三级| 亚洲激情欧美激情| 国产精品视区| 在线视频日韩| 麻豆精品视频在线观看| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲综合国产精品| 欧美女主播在线| 亚洲一区二区黄色| 免播放器亚洲| 亚洲性线免费观看视频成熟| 激情文学综合丁香| 欧美性大战久久久久久久| 久久免费精品视频| 亚洲欧美国产视频| 亚洲精品一区在线| 免费在线视频一区| 欧美一级二区| 中文无字幕一区二区三区| 在线成人av网站| 国产欧美亚洲一区| 国产精品毛片大码女人| 欧美久久久久免费| 裸体一区二区| 久久久亚洲高清| 欧美在线播放高清精品|