Duilib Control Properties Daquan

Source: Internet
Author: User
Duilibxml Configuration Items
Root node Pip Class Property type
Window
|--------image Image Information
| o------Name string
| o------restype String
| o------Mask unsigned long#
|
|--------Font Fonts Information
| o------Name string
| o------Size Long
| o------Bold BOOL
| o------underline bool
| o------Default bool
|
|--------Default Attribute Property
o------Name string
o------Value string
Root (Window property)
O--size form initialization size (int cx, int cy)
O--sizebox form Region RECT (long left, long top, long Right,long bottom)
O--caption Form title bar area RECT (long left, long top, long Right,long bottom)
O--roundcorner fillet size (int cx, int cy)
O--mininfo form minimum size (int cx, int cy)
O--maxinfo form maximum size (int cx, int cy)
O--showdirty form displays bool [True|false]
O--alpha form Transparency int
Whether the O--bktrans background supports transparent bool [True|false]
O--disabledfontcolor Invalid font color string #RRGGBBAA
O--defaultfontcolor default font Color string #RRGGBBAA
O--linkfontcolor link Normal font color string #RRGGBBAA
O--linkhoverfontcolor link Hover Font color string #RRGGBBAA
O--selectedcolor font is selected after the color string #RRGGBBAA
Public resources
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]
Instructions for use:
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
Controls control
Control Name Class
Control base class
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 Property
|------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
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
Layout Manager
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 Property
|------o Hotimage Image Property
|------o Focusedimage Image Property
|------o Disabledimage Image Property
|------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 list index number
|------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 Property
| |------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 Property
|------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]
|------The index number of the O font int font list
|------o TextColor String #RRGGBBAA
|------o textpadding RECT (long left, long top, long Right,long bottom)
|------o showhtml BOOL [true|false]
|------o Normalimage Image Property
|------o Hotimage Image Property
|------o Pushedimage Image Property
|------o Focusedimage Image Property
|------o Sepimage Image Property
Clistelementui:public Ccontrolui, Public ilistitemui
|------o Selected value has this property selected
|------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 Container
|------o Selected value has this property selected
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]
|------The index number of the O font int font list
|------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 Property
|------o Hotimage Image Property
|------o Pushedimage Image Property
|------o Focusedimage Image Property
|------o Disabledimage Image Property
|------o Dropbox string
|------o itemfont int Font list index number
|------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 Property
|------o Itemselectedtextcolor String #RRGGBBAA
|------o Itemselectedimage Image Property
|------o Itemhottextcolor String #RRGGBBAA
|------o Itemhotbkcolor String #RRGGBBAA
|------o Itemhotimage Image Property
|------o Itemdisabledtextcolor String #RRGGBBAA
|------o Itemdisabledbkcolor String #RRGGBBAA
|------o Itemdisabledimage Image Property
|------o Itemlinecolor String #RRGGBBAA
|------o itemshowhtml BOOL [true|false]
|------o Ccontainerui::setattribute (pstrname, Pstrvalue)
Button Cbuttonui:public Clabelui
|------o Normalimage Image Property
|------o Hotimage Image Property
|------o Pushedimage Image Property
|------o Focusedimage Image Property
|------o Disabledimage Image Property
|------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 Property
|------o Foreimage Image Property
|------o Selectedtextcolor String #RRGGBBAA
|------o Cbuttonui::setattribute (pstrname, Pstrvalue)
Progress Cprogressui:public Clabelui
|------o Fgimage Image Property
|------o hor BOOL
|------o min int
|------o Max INT
|------o Value INT
|------o Clabelui::setattribute (pstrname, Pstrvalue)
Slider Csliderui:public Cprogressui
|------o Thumbimage Image Property
|------o Thumbhotimage Image Property
|------o Thumbpushedimage Image Property
|------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]
|------The index number of the O font int font list
|------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 Property
|------o Button1hotimage Image Property
|------o Button1pushedimage Image Property
|------o Button1disabledimage Image Property
|------o Button2normalimage Image Property
|------o Button2hotimage Image Property
|------o Button2pushedimage Image Property
|------o Button2disabledimage Image Property
|------o Thumbnormalimage Image Property
|------o Thumbhotimage Image Property
|------o Thumbpushedimage Image Property
|------o Thumbdisabledimage Image Property
|------o Railnormalimage Image Property
|------o Railhotimage Image Property
|------o Railpushedimage Image Property
|------o Raildisabledimage Image Property
|------o Bknormalimage Image Property
|------o Bkhotimage Image Property
|------o Bkpushedimage Image Property
|------o Bkdisabledimage Image Property
|------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)
Common properties of the control
Stretch Stretchmode
o--------move_x
o--------move_y
o--------Move_xy
o--------size_x
o--------size_y
o--------Size_xy
o--------Group
o--------Line
Given the inconvenient use of the <> symbol in the XML editor, you can use the {} symbol instead
Support for tag nesting (such as <l><b>text</b></l>), but cross nesting should be avoided (e.g. <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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.