DPropertySheet Multiple Items

I was looking at the example on garrysmod.com at how to create DPropertySheets and give then code found at this example here. How would you add multiple items to a property sheet? It looks like when you “add” the sheet it calls the name of the checkbox?

That’s also a reason, why we should re-new the GMod wiki.

But I’d do it this way:
local MainMenuFrame = vgui.Create( “DFrame” )
MainMenuFrame:SetSize( 900, 500 )
MainMenuFrame:SetTitle(“Messing around menu”)
MainMenuFrame:SetVisible( true )
MainMenuFrame:SetDraggable( false )

local MainMenuSheet = vgui.Create( “DPropertySheet”, MainMenuFrame )
MainMenuSheet:SetPos( 5, 27 )
MainMenuSheet:SetSize( 890, 467 )

local RulesTab = vgui.Create( “DPanelList” )
RulesTab:SetPos( 0, 0 )
RulesTab:SetSize( MainMenuSheet:GetWide(), MainMenuSheet:GetTall() )
RulesTab:SetSpacing( 5 )
RulesTab:EnableHorizontal( false )
RulesTab:EnableVerticalScrollbar( true )

– Now, we added the DPanelList to our Sheet (Look at the AddSheet)

local RulesLabel = vgui.Create(“DLabel”, RulesTab) – We only have to parent it to the DPanelList now, and set it’s position.
RulesLabel:SetColor( Color( 0, 0, 0, 255 ) )
RulesLabel:SetText(“I think we should re-new the current GMod Wiki.”)

MainMenuSheet:AddSheet( “Rules”, RulesTab, “gui/silkicons/shield”, false, false, nil )

Hopefully you get what I do, if not, you’re welcome to PM me for further information about it.