DListView_Column:SetWidth

  DListView_Column:SetWidth( number width )

Açıklama

Panonun genişliğini ayarlar.

Argümanlar

1 number width
Pano genişliğini belirleyecek sayı değeri.

Örnek

Bir DListView oluşturur ve bunu, aynı anda yalnızca biri seçilebilen iki sütun ve iki öğeyle doldurur.

İlk sütunun genişliği 15'tir. İkinci sütunun genişliği 350'dir.

local Frame = vgui.Create( "DFrame" ) Frame:SetSize( 500, 500 ) Frame:Center() Frame:MakePopup() local SimpleList = vgui.Create( "DListView", Frame ) SimpleList:Dock( FILL ) SimpleList:SetMultiSelect( false ) SimpleList:AddColumn( "Column 1" ):SetWidth(15) SimpleList:AddColumn( "Column 2" ):SetWidth(350) SimpleList:AddLine( "First", "Column" ) SimpleList:AddLine( "Second", "Column" )
Çıktı:

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord