DListViewLine.SetValue
From GMod Wiki
Function | |
Syntax | DListViewLine:SetValue( String text ) |
Description: | |
Sets the value in the line. | |
Returns: | nil |
In Object: | DListViewLine |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DListViewLine.SetValue]DListViewLine.SetValue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Changes the value in the second column of the row we click to "Hello" |
---|---|
Used on | |
Code | local DList = vgui.Create ( "DListView" ) DList:SetPos(25,25) DList:SetSize(50,50) DList:SetMultiSelect(false) DList:AddColumn("Column 1") DList:AddColumn("Column 2") DList:AddLine("Test 1","Test 2") DList:AddLine("Test 3","Test 4") DList:AddLine("Test 5","Test 6") DList.OnClickLine = function(parent,selected,isselected) selected:SetValue(2,"Hello") endWould change "Test 2" to "Hello" if we clicked on that row. --Viktor 23:28, 28 July 2008 (GMT-6) |
Output | N/A |