Dgs-dxscrollpane: Difference between revisions
Jump to navigation
Jump to search
(Created page with "DGS Properties is always used to change the gui style and make it more fantastic. This page shows the properties of dgs-dxscrollpane that you could use. ==Main Funct...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
<syntaxhighlight lang="lua">dgsSetProperty(scrollpane,"bgImage",bgImage)</syntaxhighlight> | <syntaxhighlight lang="lua">dgsSetProperty(scrollpane,"bgImage",bgImage)</syntaxhighlight> | ||
*'''bgImage:''' A material element that serves as the background image of the scroll pane (texture/shader/screen source/renderTarget). | *'''bgImage:''' A material element that serves as the background image of the scroll pane (texture/shader/screen source/renderTarget). | ||
===moveHardness=== | |||
This property determines how hard will the scroll pane moves when scrolling. | |||
<syntaxhighlight lang="lua">dgsSetProperty(scrollpane,"moveHardness",moveHardness)</syntaxhighlight> | |||
*'''moveHardness:''' A float determins how hard will the scroll pane moves when scrolling ( should be larger than 0, lower than 1 ). | |||
===scrollBarThick=== | ===scrollBarThick=== | ||
Line 39: | Line 44: | ||
*'''HorizontalLen:''' A float of the cursor length of the horizontal scroll bar. | *'''HorizontalLen:''' A float of the cursor length of the horizontal scroll bar. | ||
*'''HorizontalRelative:''' A bool indicates whether the length is relative to the size of scroll bar or not. | *'''HorizontalRelative:''' A bool indicates whether the length is relative to the size of scroll bar or not. | ||
==See Also== | |||
{{DGSPROPERTIES}} |
Revision as of 11:45, 20 May 2020
DGS Properties is always used to change the gui style and make it more fantastic.
This page shows the properties of dgs-dxscrollpane that you could use.
Main Functions
Properties
bgColor
This property determines the background color of the scroll pane.
dgsSetProperty(scrollpane,"bgColor",bgColor)
- bgColor: An integer of the color that can be converted by tocolor.
bgImage
This property determines the background image of the scroll pane.
dgsSetProperty(scrollpane,"bgImage",bgImage)
- bgImage: A material element that serves as the background image of the scroll pane (texture/shader/screen source/renderTarget).
moveHardness
This property determines how hard will the scroll pane moves when scrolling.
dgsSetProperty(scrollpane,"moveHardness",moveHardness)
- moveHardness: A float determins how hard will the scroll pane moves when scrolling ( should be larger than 0, lower than 1 ).
scrollBarThick
This property determines the thickness of scroll bar.
dgsSetProperty(scrollpane,"scrollBarThick",scrollBarThick)
- scrollBarThick: An integer of the thickness of scroll bar.
scrollBarState
This property forces the visibility of scroll bar. See dgsScrollPaneSetScrollBarState/dgsScrollPaneGetScrollBarState
dgsSetProperty(scrollpane,"scrollBarState",{vertical,horizontal})
- vertical: A bool of the state of the vertical scroll bar.
- horizontal: A bool of the state of the horizontal scroll bar.
- true: Force to be visible
- false: Force to be invisible
- nil: Auto
scrollBarLength
This property forces the length of the cursor of scroll bar to be static instead of being adjusted automatically.
dgsSetProperty(scrollpane,"scrollBarLength",{{VerticalLen,VerticalRelative},{HorizontalLen,HorizontalRelative}})
- VerticalLen: A float of the cursor length of the vertical scroll bar.
- VerticalRelative: A bool indicates whether the length is relative to the size of scroll bar or not.
- HorizontalLen: A float of the cursor length of the horizontal scroll bar.
- HorizontalRelative: A bool indicates whether the length is relative to the size of scroll bar or not.
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