duilib个简单的文档


notify:
common:    killfocus, setfocus, timer
float:    setpos
root:    windowinit
Combo:    itemselect, dropdown
Button:    click
Option:    selectchanged
Text:    link
Slider:    valuechanged
Edit:    textchanged
List:    itemselect
ListHeaderItem:    headerclick
ListLabelElement:    itemactivate, itemclick
ListTextElement:    itemactivate, itemclick
ListExpandElement: itemactivate, itemclick, itemexpand, itemcollapse
ListContainerElement: itemactivate, itemclick

属性

CControlUI
1    pos
2    padding
3    bkcolor
4    bordercolor
5    bordersize
6    bkimage
7    width
8    height
9    minwidth
10    minheight
11    maxwidth
12    maxheight
13    name
14    text
15    tooltip
16    userdata
17    enabled
18    mouse
19    visible
20    float
21    shortcut
22      bkcolor2

CContainerUI -> CControlUI
1    inset
2    mousechild
3    vscrollbar
4    hscrollbar
5    childpadding

CHorizontalLayoutUI -> CContainerUI
1    sepwidth
2    sepimm
   
CLabelUI -> CControlUI
1    align
2    font
3    textcolor
4    disabledtextcolor
5    textpadding
6    showhtml


CButtonUI -> CLabelUI -> CControlUI
1    normalimage
2    hotimage
3    pushedimage
4    focusedimage
5    disabledimage

COptionUI -> CButtonUI -> CLabelUI -> CControlUI
1    group
2    selected
3    selectedimage

CTextUI -> CLabelUI -> CControlUI

CProgressUI -> CLabelUI -> CControlUI
1    fgimage
2    hor
3    min
4    max
5    value

CSliderUI -> CProgressUI -> CLabelUI -> CControlUI
1    thumbimage
2    thumbhotimage
3    thumbpushedimage
4    thumbsize
  
   
CComboUI -> CContainerUI -> CControlUI
1    textpadding
2    normalimage
3    hotimage
4    pushedimage
5    focusedimage
6    disabledimage
7    itemfont
8    itemalign
9    itemtextpadding
10    itemtextcolor
11    itembkcolor
12    itemimage
13    itemselectedtextcolor
14    itemselectedbkcolor
15    itemselectedimage
16    itemhottextcolor
17    itemhotbkcolor
18    itemhotimage
19    itemdisabledtextcolor
20    itemdisabledbkcolor
21    itemdisabledimage
22    itemlinecolor
23    itemshowhtml

CScrollbarUI -> CControlUI
5    button1normalimage
6    button1hotimage
7    button1pushedimage
8    button1disabledimage
9    button2normalimage
10    button2hotimage
11    button2pushedimage
12    button2disabledimage
13    thumbnormalimage
14    thumbhotimage
15    thumbpushedimage
16    thumbdisabledimage
17    railnormalimage
18    railhotimage
19    railpushedimage
20    raildisabledimage
21    bknormalimage
22    bkhotimage
23    bkpushedimage
24    bkdisabledimage
25    hor
26    linesize
27    range
28    value


DrawHtmlText
    //   Link:             <a>text</a>
    //   Bold:             <b>text</b>
    //   Color:            <c #xxxxxx>text</c>  where x = RGB in hex
    //   Change font:      <f x>text</f>        where x = font id
    //   Image:            <i x y>              where x = image name and y(optional) = imagelist id
    //   NewLine           <n>                 
    //   Paragraph:        <p>
    //   X Indent:         <x i>                where i = hor indent in pixels
    //   Y Indent:         <y i>                where i = ver indent in pixels

ImageString
    // 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'

 

 

如需更多支持,请联系qq:8575946,验证消息请填dui界面库

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 16
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值