DVScrollBar
From GMod Wiki
Derma Control: DVScrollBar | |
---|---|
Parent Class: | Panel |
Subclasses: | None |
Description: | |
A vertical scrollbar. |
Examples
Notes
From addons/derma/lua/vgui/DVScrollBar.lua:
- Usage:
- Place this control in your panel. You will ideally have another panel or
- control which is bigger than the original panel. This is the Canvas.
- scrollbar:SetUp( _barsize_, _canvassize_ ) should be called whenever
- the size of your 'canvas' changes.
- scrollbar:GetOffset() can be called to get the offset of the canvas.
- You should call this in your PerformLayout function and set the Y pos of your canvas to this value.
Methods
DVScrollBar.AddScroll
DVScrollBar.BarScale
DVScrollBar.GetOffset
DVScrollBar.GetScroll
DVScrollBar.Grip
DVScrollBar.Init
DVScrollBar.OnCursorMoved
DVScrollBar.OnMousePressed
DVScrollBar.OnMouseReleased
DVScrollBar.OnMouseWheeled
DVScrollBar.Paint
DVScrollBar.PerformLayout
DVScrollBar.SetEnabled
DVScrollBar.SetScroll
DVScrollBar.SetUp
DVScrollBar.Think
DVScrollBar.Value