Garry's Mod Wiki

DTextEntry:OnGetFocus

DTextEntry:OnGetFocus

DTextEntry:OnGetFocus()

Description

Called whenever the DTextEntry gains focus.

Example

local dTextEntry = vgui.Create("DTextEntry") dTextEntry:SetText("Enter text here") -- Make the text field clear when you click into it. dTextEntry.OnGetFocus = function(self) self:SetValue("") end
Output: Text entry clears when user clicks it to begin typing

Special Pages


Wikis

?

Render Time: 18ms

DB GetPage 2
Generate Html 0
SaveChanges (1) 7
Render Body 0
Render Sidebar 6