# DColumnSheet

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

## Açıklama

[DPropertySheet](https://gmod.tr/wiki/DPropertySheet)'e benzer, ancak sekmeler soldadır.

[Kaynağı görüntüle](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/vgui/dcolumnsheet.lua)

## Ebeveyn

Bu sayfada listelenmeyen metotları vb. [Panel](https://gmod.tr/wiki/Panel)'den miras alır.

## Uygular

Aşağıdaki kancaları/metotları uygular veya geçersiz kılar. Bunları geçersiz kılmak isterseniz, muhtemelen orijinal fonksiyonu da çağırmak istersiniz.

- [Panel:Init](https://gmod.tr/wiki/PANEL:Init)

## Metotlar

[table](https://gmod.tr/wiki/table) DColumnSheet:[AddSheet](https://gmod.tr/wiki/DColumnSheet:AddSheet)( [string](https://gmod.tr/wiki/string) name, [Panel](https://gmod.tr/wiki/Panel) pnl, [string](https://gmod.tr/wiki/string) icon = nil )

Yeni bir sütun/sekme ekler.

[Panel](https://gmod.tr/wiki/Panel) DColumnSheet:[GetActiveButton](https://gmod.tr/wiki/DColumnSheet:GetActiveButton)()

Bu DColumnSheet'in aktif butonunu döndüren bir AccessorFunc.

DColumnSheet:[SetActiveButton](https://gmod.tr/wiki/DColumnSheet:SetActiveButton)( [Panel](https://gmod.tr/wiki/Panel) active )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. Bir butonu bu DColumnSheet için aktif buton yapan bir AccessorFunc.

DColumnSheet:[UseButtonOnlyStyle](https://gmod.tr/wiki/DColumnSheet:UseButtonOnlyStyle)()

Sekmelerin/butonların sadece resmi ve metin olmadan gösterilmesini sağlar.

### Örnek

Bu paneli nasıl kullanacağınıza dair örnek

```lua
local frame = vgui.Create( "DFrame" )
frame:SetSize( 500, 300 )
frame:Center()
frame:MakePopup()

local sheet = vgui.Create( "DColumnSheet", frame )
sheet:Dock( FILL )

local panel1 = vgui.Create( "DPanel", sheet )
panel1:Dock( FILL )
panel1.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 0, 128, 255 ) ) end
sheet:AddSheet( "test", panel1, "icon16/cross.png" )

local panel2 = vgui.Create( "DPanel", sheet )
panel2:Dock( FILL )
panel2.Paint = function( self, w, h ) draw.RoundedBox( 4, 0, 0, w, h, Color( 255, 128, 0 ) ) end
sheet:AddSheet( "test 2", panel2, "icon16/tick.png" )
```

![](https://gmod.tr/api/uploads/wiki/9a8e67ec06e78152bc47.png) ![](https://gmod.tr/api/uploads/wiki/9132159489da8b9079e2.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/DColumnSheet
