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

隨筆-381  評論-37  文章-0  trackbacks-0
DUILib xml配置項
根節點        子類      屬性                            類型
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    默認Attribute屬性
                 o------name                            string
                 o------value                           string
    
root(Window屬性)
    o--size              窗體初始化大小                 SIZE(int cx, int cy)
    o--sizebox           窗體區域                       RECT(long left, long top, long right,long bottom)
    o--caption           窗體標題欄區域                 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  默認字體顏色                   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編輯器中使用<>符號不方便,可以使用{}符號代替
支持標簽嵌套(如<l><b>text</b></l>),但是交叉嵌套是應該避免的(如<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 小王 閱讀(4536) 評論(2)  編輯 收藏 引用 所屬分類: UI

評論:
# re: DirectUI Lib XML編寫說明[未登錄] 2015-01-21 11:27 | king
很好,對于我這樣的初學者很用幫助,謝謝樓主  回復  更多評論
  
# re: DirectUI Lib XML編寫說明 2015-06-25 18:09 | dictbox
這個不錯,很有用。  回復  更多評論
  
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            国产精品日韩在线一区| 亚洲在线免费视频| 蜜桃精品久久久久久久免费影院| 中文日韩在线视频| 亚洲国产中文字幕在线观看| 香蕉成人啪国产精品视频综合网| 亚洲另类黄色| 亚洲伦理一区| 一本色道久久综合亚洲精品不| 999亚洲国产精| 亚洲视频在线一区观看| 亚洲美女精品成人在线视频| 亚洲午夜免费视频| 香蕉久久a毛片| 久久久精品五月天| 久久综合久久88| 亚洲看片一区| 久久成年人视频| 欧美精品国产一区| 国产欧美日韩一区二区三区| 亚洲国产精品高清久久久| 亚洲视频一区二区| 男人的天堂亚洲在线| 亚洲视频精品在线| 牛牛国产精品| 国产综合久久| 亚洲影音先锋| 欧美激情视频在线免费观看 欧美视频免费一 | 久久久精品视频成人| 欧美成人乱码一区二区三区| 国产精品乱码久久久久久| 亚洲电影观看| 久久精品日韩一区二区三区| 亚洲高清在线播放| 欧美国产日韩精品免费观看| 美女黄色成人网| 亚洲视频精品| 欧美日本在线| 亚洲国产精品毛片| 欧美在线在线| 中文精品视频一区二区在线观看| 免费成人你懂的| 国产一区二区三区奇米久涩| 中文亚洲免费| 亚洲电影成人| 久久精品国产清高在天天线| 国产伦精品一区| 亚洲午夜一区二区| 91久久久久| 欧美不卡在线| 最新日韩在线视频| 亚洲第一天堂无码专区| 久久午夜精品一区二区| 精品动漫3d一区二区三区| 久久久噜噜噜久久久| 亚洲欧美区自拍先锋| 国产精品免费在线| 午夜在线一区| 亚洲字幕在线观看| 国产女优一区| 久久成人精品无人区| 亚洲欧美日韩区| 国产色产综合色产在线视频| 欧美中文字幕在线| 欧美一区二区女人| 韩国精品久久久999| 玖玖在线精品| 欧美freesex8一10精品| 亚洲美女免费视频| 99亚洲一区二区| 国产精品狼人久久影院观看方式| 亚洲一区高清| 亚洲欧美一区二区三区极速播放 | 韩国自拍一区| 欧美国产三区| 欧美三级午夜理伦三级中视频| 亚洲少妇自拍| 亚洲欧美日韩国产综合| 黄色精品一二区| 亚洲大胆人体在线| 欧美日韩在线观看一区二区三区| 亚洲一区二区三区高清 | 香蕉免费一区二区三区在线观看 | 99日韩精品| 一区二区三区日韩精品视频| 国产日韩欧美一区二区三区四区| 久久影视精品| 欧美色另类天堂2015| 久久精品一本| 欧美jizzhd精品欧美喷水| 中日韩午夜理伦电影免费| 午夜在线精品偷拍| 久久精品国产免费观看| 91久久精品www人人做人人爽| 91久久精品美女| 国产精品一二三视频| 老司机免费视频一区二区三区| 猛干欧美女孩| 午夜精品偷拍| 欧美 日韩 国产在线| 亚洲综合日韩在线| 久久伊人精品天天| 西西人体一区二区| 欧美大片免费观看在线观看网站推荐| 亚洲伊人伊色伊影伊综合网 | 久久蜜桃精品| 亚洲小说区图片区| 老司机精品视频一区二区三区| 一区二区电影免费观看| 欧美在线资源| 亚洲一区二区精品| 久热精品视频在线| 久久精品中文字幕免费mv| 免费在线观看一区二区| 久久精品国产精品亚洲精品| 欧美久久久久久蜜桃| 久久一区二区三区四区五区| 国产麻豆精品久久一二三| 亚洲麻豆视频| 91久久中文| 久久久国产精品一区| 欧美一区免费视频| 欧美日韩国产精品成人| 欧美国产在线电影| 国产又爽又黄的激情精品视频| 国产精品99久久久久久宅男 | 亚洲欧美日韩视频二区| 欧美大尺度在线| 亚洲高清免费视频| 亚洲高清视频一区二区| 久久久久国产精品www| 久久精品亚洲乱码伦伦中文| 国产精品视频久久久| 亚洲色在线视频| 亚洲欧美国产高清va在线播| 欧美精品一区在线| 亚洲裸体视频| 亚洲欧美激情一区| 国产精品美女| 香蕉av777xxx色综合一区| 久久久噜噜噜久久中文字幕色伊伊| 国产日本欧美在线观看| 欧美影院久久久| 欧美aⅴ一区二区三区视频| 伊人成人网在线看| 可以看av的网站久久看| 欧美国产日韩免费| 亚洲精品免费电影| 欧美日韩中文字幕| 亚洲自拍高清| 蜜桃精品久久久久久久免费影院| 亚洲国产精品传媒在线观看| 久久精品一区二区三区四区 | 欧美不卡视频一区| 在线观看亚洲| 欧美交受高潮1| 一区二区高清在线| 欧美一区二区在线视频| 国产一区二区三区不卡在线观看| 欧美制服丝袜| 欧美激情视频一区二区三区在线播放| 亚洲免费成人av电影| 国产精品久久久久一区| 久久久久久有精品国产| 日韩视频一区二区| 久久免费一区| 在线亚洲精品福利网址导航| 国产视频一区在线| 亚洲国产成人在线视频| 在线观看一区二区精品视频| 免费欧美电影| 亚洲素人在线| 男男成人高潮片免费网站| 一本大道久久a久久综合婷婷| 国产精品国产成人国产三级| 久久电影一区| 一本久道久久综合婷婷鲸鱼| 久久精品国产99国产精品| 夜夜爽av福利精品导航| 韩国自拍一区| 国产精品日韩一区二区| 欧美+亚洲+精品+三区| 亚洲欧美久久| 9色精品在线| 欧美大片一区| 久久av一区二区三区| 99在线视频精品| 在线精品福利| 国产精品视频yy9299一区| 欧美理论大片| 久久午夜精品| 欧美亚洲一级片| 日韩亚洲欧美在线观看| 乱人伦精品视频在线观看| 亚洲欧美在线aaa| 99在线精品视频| 亚洲精品免费看| 亚洲高清在线视频| 激情国产一区二区| 国产偷国产偷亚洲高清97cao|