DHorizontalScroller
Description
A very basic horizontal scrollable panel, similar to DScrollPanel.
Used internally in DPropertySheet.
Parent
Derives methods, etc not listed on this page from Panel.
Events
DHorizontalScroller:OnDragModified()
Called when the panel is scrolled.
Methods
Returns the internal canvas panel where the content of DHorizontalScroller are placed on.
number DHorizontalScroller:GetOverlap()
Returns the overlap set by DHorizontalScroller:SetOverlap.
boolean DHorizontalScroller:GetShowDropTargets()
Returns whether this panel should show drop targets.
DHorizontalScroller:MakeDroppable( string name )
Same as DDragBase:MakeDroppable.
TODO: Transclude or whatever to here?
DHorizontalScroller:ScrollToChild( Panel target )
Scrolls the DHorizontalScroller to given child panel.
DHorizontalScroller:SetOverlap( number overlap )
Controls the spacing between elements of the horizontal scroller.
Sets the scroll amount, automatically clamping the value.
DHorizontalScroller:SetShowDropTargets( boolean newState )
Sets whether this panel should show drop targets.
DHorizontalScroller:SetUseLiveDrag( boolean newState )
Same as DDragBase:SetUseLiveDrag
Example
Creates a DHorizontalScroller with a bunch of DImages attached to it.
Example
Creates a DHorizontalScroller with a bunch of DImages attached to it and demonstrates how to color the left/right scroll buttons.