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:
[lua]
local MainMenuFrame = vgui.Create( “DFrame” )
MainMenuFrame:SetSize( 900, 500 )
MainMenuFrame:SetTitle(“Messing around menu”)
MainMenuFrame:Center()
MainMenuFrame:SetVisible( true )
MainMenuFrame:SetDraggable( false )
MainMenuFrame:MakePopup()

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:SetPos(5,5)
RulesLabel:SetColor( Color( 0, 0, 0, 255 ) )
RulesLabel:SetFont(“default”)
RulesLabel:SetText(“I think we should re-new the current GMod Wiki.”)
RulesLabel:SizeToContents()

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

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