DListView.AddLine

From GMod Wiki

Jump to: navigation, search
Function
Syntax DListView:AddLine( String column_name, ... )
Description:
Adds a line to a DListView Derma element.
Returns: DListView_Line
In Object: DListView
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DListView.AddLine]DListView.AddLine [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates a DListView element, adds 3 columns to it and adds a line with "Garry" in the "Name" column, "0" in the "Kills" column and "18" in the "Deaths" column.
Used onNewerClient.png
Code
local DermaListView = vgui.Create( "DListView" ) --Create it
DermaListView:Center() --Center it
DermaListView:SizeToContents() --Make it as big as the contents in it
DermaListView:AddColumn( "Name" ) -- Add columns
DermaListView:AddColumn( "Kills" )
DermaListView:AddColumn( "Deaths" )
DermaListView:AddLine( "Garry", "0", "18" ) --Add line
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox