DPanelList.RemoveItem

From GMod Wiki

Jump to: navigation, search
Function
Syntax DPanelList:RemoveItem( panel item )
Description:
Remove item of DPanelList.
Returns: nil
In Object: DPanelList
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DPanelList.RemoveItem]DPanelList.RemoveItem [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRemove item of panel.
Used onNewerClient.png
Code
 
 
local DermaPanel =
 vgui.Create("DPanelList")
DermaPanel:SetSize(50, 200)
DermaPanel:SetPos(300,400)
 
local CategoryContentOne = vgui.Create( "DCheckBoxLabel" )
CategoryContentOne:SetText( "God Mode" )
CategoryContentOne:SetConVar( "sbox_godmode" )
CategoryContentOne:SetValue( 1 )
CategoryContentOne:SizeToContents()
DermaList:AddItem( CategoryContentOne ) -- Add the item above
 
DermaList:RemoveItem(CategoryContentOne)
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox