DPropertySheet:AddSheet
table DPropertySheet:AddSheet( string name, Panel pnl, string icon = "nil", boolean noStretchX = false, boolean noStretchY = false, string tooltip = "nil" )
Description
Adds a new tab.
Arguments
Returns
Example
local frame = vgui.Create("DFrame")
frame:SetSize( ScrW() / 2, ScrH() / 2 )
frame:SetTitle( "Test Frame" )
frame:MakePopup()
frame:Center()
local tabs = vgui.Create( "DPropertySheet", frame )
tabs:Dock( FILL )
local tab1panel = vgui.Create( "DPanel" )
local SheetItem = vgui.Create( "DButton", tab1panel )
SheetItem:SetText( "Suicide" )
SheetItem:SetConsoleCommand( "kill" )
tabs:AddSheet( "Tab 1", tab1panel, "icon16/user.png", false, false, "Description of first tab")