# DPropertySheet:AddSheet

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

```lua
table DPropertySheet:AddSheet( string name, Panel pnl, string icon = nil, boolean noStretchX = false, boolean noStretchY = false, string tooltip = nil )
```

## Açıklama

Yeni bir sekme ekler.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **name**: Sekmenin adı
2. [Panel](https://gmod.tr/wiki/Panel) **pnl**: Sekmenin içeriği olarak kullanılacak panel. Bu normalde bir [DPanel](https://gmod.tr/wiki/DPanel) olmalıdır
3. [string](https://gmod.tr/wiki/string) **icon** = nil: Sekme için simge. Bu ideal olarak bir [silkicon](https://gmod.tr/wiki/Silkicons) olmalıdır, ancak herhangi bir materyal adı kullanılabilir.
4. [boolean](https://gmod.tr/wiki/boolean) **noStretchX** = false: [DPropertySheet](https://gmod.tr/wiki/DPropertySheet)'in verilen panelle kendisini yatay olarak doldurmaya çalışıp çalışmayacağı.
5. [boolean](https://gmod.tr/wiki/boolean) **noStretchY** = false: [DPropertySheet](https://gmod.tr/wiki/DPropertySheet)'in verilen panelle kendisini dikey olarak doldurmaya çalışıp çalışmayacağı.
6. [string](https://gmod.tr/wiki/string) **tooltip** = nil: Kullanıcı imleciyle üzerine geldiğinde sekme için gösterilecek ipucu

## Döndürülenler

1. [table](https://gmod.tr/wiki/table): Aşağıdaki anahtarları içeren bir tablo: - [Panel](https://gmod.tr/wiki/Panel) Tab - Oluşturulan [DTab](https://gmod.tr/wiki/DTab). - [string](https://gmod.tr/wiki/string) Name - Oluşturulan sekmenin adı - [Panel](https://gmod.tr/wiki/Panel) Panel - Sekmenin içerik paneli

### Örnek

```lua
local frame = vgui.Create("DFrame")
frame:SetSize( ScrW() / 2, ScrH() / 2 )
frame:SetTitle( "Test Frame" )
frame:MakePopup()
frame:Center()

local tabs = vgui.Create( "DPropertySheet", frame )
tabs:Dock( FILL )

local tab1panel = vgui.Create( "DPanel" )

local SheetItem = vgui.Create( "DButton", tab1panel )
SheetItem:SetText( "Suicide" )
SheetItem:SetConsoleCommand( "kill" )

tabs:AddSheet( "Tab 1", tab1panel, "icon16/user.png", false, false, "Description of first tab")
```

- [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/DPropertySheet:AddSheet
