Dgs-dxcombobox
DGS Properties is always used to change the gui style and make it more fantastic.
This page shows the properties of dgs-dxcombobox that you could use.
Main Functions
Properties
alignment
Alignment of the caption text within the combo box.
dgsSetProperty(combobox,"alignment",{alignX,alignY})
- alignX: Horizontal alignment of the caption text within the combo box. Can be "left", "center" or "right".
- alignY: Vertical alignment of the caption text within the combo box. Can be "top", "center" or "bottom".
clip
Whether the clip property is enabled (include caption text and item text). Learn More dxDrawText
dgsSetProperty(combobox,"clip",clip)
- clip: If set to true, the parts of the text that don't fit within the bounding box will be cut off.
colorcoded
Whether the color code is enabled (include caption text and item text). Learn More dxDrawText
dgsSetProperty(combobox,"colorcoded",colorcoded)
- colorcoded: Set to true to enable embedded #FFFFFF color codes.
font
This is equivalent to dgsSetFont/dgsGetFont. Learn More dxDrawText
dgsSetProperty(combobox,"font",font)
- font: A string or a dx font element of the text font of the combo box.
shadow
The shadow of the text of the combo box.
dgsSetProperty(combobox,"shadow",{offsetX,offsetY,color,outline})
- offsetX: A float of the 2D X offset of the shadow text of the combo box.
- offsetY: A float of the 2D Y offset of the shadow text of the combo box.
- color: An integer of the color of the shadow text of the combo box.
- outline: A bool of the outline state of the shadow text.
myBox
Combo box is composed by dgs-dxcombobox and dgs-dxcombobox-Box. This property stores the dgs-combobox-Box of dgs-dxcombobox.
dgsSetProperty(combobox,"myBox",myBox)
- myBox: A dgs-dxcombobox-box element.
This property stores the caption text of combo box.
dgsSetProperty(combobox,"caption",caption)
- caption: A string of the caption text of the combo box.
itemHeight
This property determines the item height of the combo box.
dgsSetProperty(combobox,"itemHeight",itemHeight)
- itemHeight: An integer of item height of the combo box.
moveHardness
This property determines how hard will the combo box moves when scrolling.
dgsSetProperty(combobox,"moveHardness",moveHardness)
- moveHardness: A float determins how hard will the combo box moves when scrolling ( should be larger than 0, lower than 1 ).
textColor
The color which can be translated by tocolor of the caption text of the combo box.
dgsSetProperty(combobox,"textColor",textColor)
- textColor: An integer of the color of the text of the combo box.
textSize
The scale of the capiton text of the combo box. Learn More dxDrawText
dgsSetProperty(combobox,"textSize",{scaleX,scaleY})
- scaleX: A float of the 2D X scale of the text of the combo box.
- scaleY: A float of the 2D Y scale of the text of the combo box.
wordbreak
Whether the word-break of capiton text is enabled or not. Learn More dxDrawText
dgsSetProperty(capiton ,"wordbreak",wordbreak)
- wordbreak: If set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.
See Also
General Properties
Unique Properties For DGS Core Elements
- dgs-dx3dinterface
- dgs-dx3dimage
- dgs-dx3dtext
- dgs-dx3dline
- dgs-dxbutton
- dgs-dxcheckbox
- dgs-dxcombobox
- dgs-dxdetectarea
- dgs-dxedit
- dgs-dxgridlist
- dgs-dximage
- dgs-dxlabel
- dgs-dxline
- dgs-dxmemo
- dgs-dxprogressbar
- dgs-dxradiobutton
- dgs-dxscrollbar
- dgs-dxscrollpane
- dgs-dxselector
- dgs-dxswitchbutton
- dgs-dxtabpanel
- dgs-dxtab
- dgs-dxwindow