# DListView\_Column:SetFixedWidth

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/DListView_Column:SetFixedWidth
- **Çeviri tarihi:** 2025-09-08

```lua
DListView_Column:SetFixedWidth( number width )
```

## Açıklama

Sütunun sabit genişliğini ayarlar.

> **NOT:** Dahili olarak bu, [SetMinWidth](https://gmod.tr/wiki/DListView_Column:SetMinWidth) ve [SetMaxWidth](https://gmod.tr/wiki/DListView_Column:SetMaxWidth) değerlerini sağlanan değere ayarlar.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **width**: Sabit bir genişlik belirleyecek olan sayısal değer.

### Örnek

Bir DListView oluşturur ve bunu iki sütun ve iki öğe ile doldurur; aynı anda yalnızca biri seçilebilir.

İlk sütun, ikinci sütundan daha uzun olacaktır.

```lua
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" )
SimpleList:AddColumn( "Column 2" ):SetFixedWidth(125)

SimpleList:AddLine( "First", "Column" )
SimpleList:AddLine( "Second", "Column" )
```

**Çıktı:** ![](https://gmod.tr/api/uploads/wiki/9771ff5a906aed700e0d.png)

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/DListView_Column:SetFixedWidth
