Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...