Garry's Mod Wiki

PanelList

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 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

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 9
Render Body 0
Render Sidebar 11