DTextEntry:OnLoseFocus

  DTextEntry:OnLoseFocus()

Açıklama

DTextEntry odağını kaybettiğinde çağrılır.

Örnek

concommand.Add( "test_textentry_onlosefocus", function(ply) local frame = vgui.Create( "DFrame" ) frame:SetSize( 400, 200 ) frame:Center() frame:MakePopup() local default = "Brick with bob" local textentry = vgui.Create( "DTextEntry", frame ) textentry:SetText( default ) textentry:Dock( TOP ) textentry.OnLoseFocus = function( self ) if ( self:GetText() == "" ) then self:SetText( default ) end end end )
Çıktı: Girilen metin boşsa DTextEntry değeri varsayılan değere sıfırlanır.

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