DPanelList
Description
Displays elements in a horizontal or vertical list. A scrollbar is automatically shown if necessary.
You can get its vertical bar via DPanelList.VBar.
DPanelList was succeeded in version 13 by more specialised layout elements.
We advise against using this. It may be changed or removed in a future update.
Use a combination of DIconLayout, DListLayout and DScrollPanel instead.
Use a combination of DIconLayout, DListLayout and DScrollPanel instead.
Parent
Derives methods, etc not listed on this page from DPanel.
Methods
DPanelList:CleanList()
Removes all items.
DPanelList:EnableVerticalScrollbar()
Enables/creates the vertical scroll bar so that the panel list can be scrolled through.
number DPanelList:GetPadding()
Returns offset of list items from the panel borders set by DPanelList:SetPadding
number DPanelList:GetSpacing()
Returns distance between list items set by DPanelList:SetSpacing
Insert given panel at the top of the list.
DPanelList:Rebuild()
Internal: This is used internally - although you're able to use it you probably shouldn't.
Used internally to rebuild the child panel positions.
DPanelList:SetAutoSize( boolean shouldSizeToContents )
Sets the DPanelList to size its height to its contents. This is set to false by default.
DPanelList:SetPadding( number Offset )
Sets the offset of the lists items from the panel borders
DPanelList:SetSpacing( number Distance )
Sets distance between list items
Garry's Mod
Rust
Steamworks
Wiki Help