DVScrollBar
Description
A generic vertical scrollbar, used in DScrollPanel. See the horizontal alternative here.
The scrollbar notably contains DVScrollBar.btnUp
, DVScrollBar.btnDown
, and DVScrollBar.btnGrip
which are the up button, down button, and grip respectively. Editing the paint functions of these allows custom scrollbar styling (See DScrollPanel:GetVBar for an example), although it is a better idea to use Derma Skins.
Parent
Derives methods, etc not listed on this page from Panel.
Methods
Smoothly scrolls to given level.
Returns the scale of the scroll bar based on the difference in size between the visible "window" into the canvas that is being scrolled. Should be used after DVScrollBar:SetUp.
boolean DVScrollBar:GetHideButtons()
Returns whether or not the manual up/down scroll buttons are visible or not. Set by DVScrollBar:SetHideButtons.
DVScrollBar:Grip()
This is used internally - although you're able to use it you probably shouldn't.
Called from within DScrollBarGrip
DVScrollBar:SetHideButtons( boolean hide )
Allows hiding the up and down buttons for better visual stylisation.