Garry's Mod Wiki

DColumnSheet

Description

Similar to DPropertySheet, but with tabs on the left.

Parent

Derives from Panel.

Example

Example of how you'd use this panel

local frame = vgui.Create( "DFrame" ) frame:SetSize( 500, 300 ) frame:Center() frame:MakePopup() local sheet = vgui.Create( "DColumnSheet", frame ) sheet:Dock( FILL ) local panel1 = vgui.Create( "DPanel", sheet ) panel1:Dock( FILL ) panel1.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 0, 128, 255 ) ) end sheet:AddSheet( "test", panel1, "icon16/cross.png" ) local panel2 = vgui.Create( "DPanel", sheet ) panel2:Dock( FILL ) panel2.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 255, 128, 0 ) ) end sheet:AddSheet( "test 2", panel2, "icon16/tick.png" )

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 3
Generate Html 7
SaveChanges (1) 9
Render Body 0
Render Sidebar 10