Garry's Mod Wiki

Garry's Mod Wiki

Description

A panel list with a custom vertical scroll bar that doesn't have up/down buttons and has a momentum to scrolling.

We advise against using this. It may be changed or removed in a future update. You should use DScrollPanel instead

Parent

Derives methods, etc not listed on this page from Panel.

Example

Example usage of the panel

local frame = vgui.Create( "DFrame" ) frame:SetSize( 300, 500 ) frame:Center() frame:MakePopup() local pnl = frame:Add( "PanelList" ) pnl:Dock( FILL ) pnl:EnableVerticalScrollbar() for i = 0, 100 do local button = pnl:Add( "DButton" ) pnl:AddItem( button ) end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...