DColumnSheet.AddSheet

From GMod Wiki

Jump to: navigation, search
Function
Syntax DColumnSheet:AddSheet( String label, Panel panel, String icon )
Description:
Adds a Sheet to a DColumnSheet.
Returns: nil
In Object: DColumnSheet
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DColumnSheet.AddSheet]DColumnSheet.AddSheet [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates a frame with a column sheet with one sheet in it.
Used onNewerClient.png
Code
 local DFrame = vgui.Create("DFrame")
	DFrame:SetSize(500,500)
	DFrame:Center()
	DFrame:SetTitle("DColumnSheet test")
	DFrame:MakePopup()
 
	DColumnSheet = vgui.Create("DColumnSheet",DFrame)
	DColumnSheet:SetPos(5,25)
	DColumnSheet:SetSize(490,450)
 
	local Panel = vgui.Create("DPanel")
	DColumnSheet:AddSheet("Sheet",Panel,"vgui/box");
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox