DHScrollBar
Description
A generic horizontal scrollbar. See the vertical alternative here.
The scrollbar notably contains DHScrollBar.btnLeft
, DHScrollBar.btnRight
, and DHScrollBar.btnGrip
which are the left button, right button, and grip respectively. Editing the paint functions of these allows custom scrollbar styling, 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 DHScrollBar:SetUp.
boolean DHScrollBar:GetHideButtons()
Returns whether or not the manual left/right scroll buttons are visible or not. Set by DHScrollBar:SetHideButtons.
DHScrollBar:Grip()
This is used internally - although you're able to use it you probably shouldn't.
Called from within DScrollBarGrip
DHScrollBar:SetHideButtons( boolean hide )
Allows hiding the left and right buttons for better visual stylisation.