Description
Called whenever the DTextEntry gains focus.
Example
local dTextEntry
= vgui.
Create(
"DTextEntry")
dTextEntry:
SetText(
"Enter text here")
dTextEntry.
OnGetFocus = function(self)
self:
SetValue(
"")
end Output: Text entry clears when user clicks it to begin typing