From GMod Wiki
Derma Control: DColumnSheet |
Parent Class: | Panel |
Subclasses: | None |
Description: |
Similar to the DPropertySheet but vertical. |
Examples
Description | Creates a DFrame and a DColumnBox with 3 sheets. |
Used on | |
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 1",Panel,"vgui/box")
local Panel2 = vgui.Create("DPanel")
DColumnSheet:AddSheet("Sheet 2",Panel2,"vgui/box")
local Panel3 = vgui.Create("DPanel")
DColumnSheet:AddSheet("Sheet 3",Panel3,"vgui/box")
|
Output | |
Methods
DColumnSheet.AddSheet
DColumnSheet.SetActiveButton