# DTextEntry:SetCursorColor

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/DTextEntry:SetCursorColor
- **Çeviri tarihi:** 2026-05-13

```lua
DTextEntry:SetCursorColor( Color color )
```

## Açıklama

DTextEntry ( parlayan satırdaki imlecin rengini ayarlar).

## Argümanlar

1.. [Renk](https://gmod.tr/wiki/Color) **Renkli**: İmleci ayarlamak için renk.

### Örnek

Bir panel ve bir DTextEntry oluşturur, sonra imleç rengini belirler. [https://maurits.tv/data/garrysmod/wiki/ wiki.garrysmod.com/index9051.html](https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index9051.html))

```lua
local ParentPanel = vgui.Create("DFrame")
	ParentPanel:SetSize(ScrW()/7, ScrH()/12)
	ParentPanel:Center()
	ParentPanel:SetTitle("Cursor Color Test")
	ParentPanel:SetDeleteOnClose(true)
	ParentPanel:MakePopup()

local TextEntry = vgui.Create( "DTextEntry", ParentPanel )
	TextEntry:SetSize(ScrW()/9, ScrH()/30)
	TextEntry:SetValue("Cursor Color Test ")
	TextEntry:SetPos(ParentPanel:GetWide()/2-TextEntry:GetWide()/2,
	ParentPanel:GetTall()/2-TextEntry:GetTall()/5)
	TextEntry:SetEnterAllowed(false)

	-- Basit RGBA ( Kırmızı, Yeşil, Mavi, Alfa) renkleri kullanıyor.
	TextEntry:SetCursorColor(Color(255,0,0,255))

	TextEntry:RequestFocus()
```

**Çıkış:** Metin girişinin imleç rengini kırmızı yapar.

- [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/DTextEntry:SetCursorColor
