Garry's Mod Wiki

Garry's Mod Wiki

Description

This is used internally - although you're able to use it you probably shouldn't.

A single column, used by DListView.

View source

Parent

Derives methods, etc not listed on this page from Panel.

Implements

Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.

Events

DListView_Column:DoClick()
Called when the column is left clicked (on key release) by the client. See also DListView_Column:DoRightClick.
DListView_Column:DoRightClick()
Called when the column is right clicked (on key release) by the client. See also DListView_Column:DoClick.

Methods

number DListView_Column:GetColumnID()
Gets the index used for this column.
boolean DListView_Column:GetDescending()
Returns whether the column is sorted in descending order or not.
number DListView_Column:GetFixedWidth()
Returns the fixed width of this column.
number DListView_Column:GetMaxWidth()
Returns the maximum width set with DListView_Column:SetMaxWidth.
number DListView_Column:GetMinWidth()
Returns the minimum width set with DListView_Column:SetMinWidth.
number DListView_Column:GetTextAlign()
Returns the text alignment for the column
DListView_Column:ResizeColumn( number size )
Resizes the column, additionally adjusting the size of the column to the right, if any.
DListView_Column:SetColumnID( number index )
This is used internally - although you're able to use it you probably shouldn't. Sets the index used for this column.
DListView_Column:SetDescending( boolean desc )
Sets whether the column is sorted in descending order or not.
DListView_Column:SetFixedWidth( number width )
Sets the fixed width of the column. Internally this will set SetMinWidth and SetMaxWidth to the value provided
DListView_Column:SetMaxWidth( number width )
Sets the maximum width of a column.
DListView_Column:SetMinWidth( number width )
Sets the minimum width of a column.
DListView_Column:SetName( string name )
Sets the text in the column's header.
DListView_Column:SetTextAlign( number alignment )
Sets the text alignment for the column
DListView_Column:SetWidth( number width )
Sets the width of the panel.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...