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

隨筆-380  評論-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 小王 閱讀(4527) 評論(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>
            国产视频久久久久久久| 最新亚洲电影| 亚洲国产婷婷香蕉久久久久久99 | 亚洲在线观看| 欧美激情按摩在线| 久久久久国产精品厨房| 亚洲中字黄色| 日韩一级大片| 亚洲日本中文| 激情文学一区| 国产综合18久久久久久| 国精品一区二区| 亚洲蜜桃精久久久久久久| 亚洲激情精品| 亚洲欧洲精品天堂一级| 亚洲美女色禁图| 久久综合九九| 欧美激情精品久久久久久| 亚洲欧美自拍偷拍| 欧美有码在线观看视频| av成人黄色| 99国产精品视频免费观看一公开 | 欧美一区二区三区在线看| 久久本道综合色狠狠五月| 久久精品国产欧美激情| 国产精品乱子久久久久| 国产精品欧美激情| 亚洲一区视频在线| 日韩午夜免费| 午夜久久影院| 免费观看久久久4p| 欧美激情第一页xxx| 欧美日本免费| 国产农村妇女精品| 亚洲激情av在线| 亚洲色图自拍| 欧美亚洲免费电影| 久久国产加勒比精品无码| 久久久女女女女999久久| 欧美激情麻豆| 欧美成人亚洲成人| 国产精品国产自产拍高清av王其| 国产精品一区二区三区四区五区| 狠狠色噜噜狠狠狠狠色吗综合| 亚洲电影在线免费观看| 亚洲视频一区| 亚洲人成网站777色婷婷| 亚洲欧美在线x视频| 国产日产欧美一区| 你懂的成人av| 一本一本久久a久久精品综合妖精 一本一本久久a久久精品综合麻豆 | 久久成人一区二区| 欧美不卡激情三级在线观看| 亚洲人成在线播放网站岛国| 亚洲人成久久| 国产精品ⅴa在线观看h| **性色生活片久久毛片| 亚洲欧美视频| 亚洲国产1区| 新67194成人永久网站| 狠狠久久婷婷| 99pao成人国产永久免费视频| 国产农村妇女毛片精品久久麻豆 | 麻豆成人小视频| 亚洲亚洲精品在线观看| 欧美金8天国| 在线观看一区二区视频| 亚洲国产另类精品专区 | 在线播放中文一区| 欧美亚洲日本一区| 欧美成人午夜| 欧美一区二区日韩| 亚洲网站视频福利| 亚洲成色最大综合在线| 亚洲欧美成人一区二区在线电影 | 亚洲图中文字幕| 欧美一区二区三区视频免费| 亚洲剧情一区二区| 亚洲欧美乱综合| 国产精品女人网站| 亚洲国产欧美国产综合一区| 亚洲精品影院在线观看| 久久夜色精品| 狠色狠色综合久久| 亚洲精品一区二区三区樱花| 国产中文一区二区| 中文日韩在线视频| 国产伦精品一区二区三区视频黑人| 久久久精品动漫| 欧美日韩综合视频| 亚洲夜晚福利在线观看| 亚洲日本视频| 久久久久久久综合| 亚洲人成在线观看网站高清| 亚洲色诱最新| 日韩视频中文| 久久躁日日躁aaaaxxxx| 亚洲欧洲日产国码二区| 午夜精品视频网站| 亚洲欧美国产另类| 亚洲男女自偷自拍| 亚洲免费网址| 欧美激情视频一区二区三区免费 | 亚洲二区在线观看| 久久成人资源| 久久久久久精| 国产欧美二区| 亚洲在线成人精品| 欧美一区二区三区免费视| 欧美人成在线视频| 亚洲精品在线免费观看视频| 日韩一区二区久久| 欧美另类69精品久久久久9999| 亚洲国产精品第一区二区| 亚洲免费观看高清在线观看| 欧美精品一区二区三区蜜臀| 日韩视频免费观看高清完整版| 99精品国产福利在线观看免费| 欧美极品aⅴ影院| 一区二区日韩伦理片| 亚洲欧美另类在线观看| 国产婷婷成人久久av免费高清| 久久成人综合网| 美女精品在线| 国产精品扒开腿做爽爽爽软件| avtt综合网| 亚洲一区国产一区| 国产日韩一区二区| 久久免费视频在线观看| 亚洲大胆美女视频| 国产日韩视频一区二区三区| 欧美中文在线免费| 欧美国产视频在线| 99国内精品| 国产日韩一区二区三区在线| 久久婷婷麻豆| 亚洲国产欧美一区二区三区久久 | 欧美精品激情blacked18| 这里是久久伊人| 久久精品人人| 欧美日韩一区二区三区四区五区| 亚洲美女毛片| 免费观看亚洲视频大全| 亚洲三级毛片| 欧美日韩在线视频一区| 亚洲视频网在线直播| 久久免费精品视频| 99精品国产高清一区二区 | 久久九九国产| 正在播放欧美一区| 欧美在线国产| 欧美成人高清视频| 日韩视频中文字幕| 国语自产精品视频在线看| 欧美丰满高潮xxxx喷水动漫| 亚洲国产高清aⅴ视频| 欧美一区二区三区免费在线看| 国内久久婷婷综合| 欧美性一区二区| 午夜精品久久久久久| 夜夜精品视频| 亚洲三级国产| 国产在线一区二区三区四区| 欧美视频一区二区三区…| 亚洲欧美一区二区在线观看| 亚洲精品亚洲人成人网| 久久精品国产精品亚洲精品| 亚洲小说欧美另类社区| 亚洲一区www| 亚洲成色精品| 久久久人成影片一区二区三区观看 | 国产精品亚洲综合天堂夜夜| 日韩一级片网址| 亚洲一区bb| 亚洲电影第三页| 黑丝一区二区| 欧美日韩视频免费播放| 欧美99在线视频观看| 久久久久91| 一区二区三区视频在线看| 亚洲人成网站在线播| 麻豆国产精品va在线观看不卡| 久久国产88| 亚洲综合大片69999| 亚洲日本视频| 亚洲黄色天堂| 国内一区二区三区| 狠狠综合久久av一区二区老牛| 国产精品一区二区在线观看不卡| 模特精品裸拍一区| 欧美14一18处毛片| 亚洲一区二区在线看| 日韩网站在线观看| 日韩午夜剧场| 亚洲精品久久久久久下一站 | 香蕉成人啪国产精品视频综合网| 亚洲国产天堂久久综合| 亚洲欧洲一区二区三区久久| 激情综合五月天| 国产精品二区影院|