Garry's Mod Wiki

DTextEntry:OnGetFocus

void DTextEntry:OnGetFocus()

Description

Called whenever the DTextEntry gains focus.

Example

local dTextEntry = vgui.Create("DTextEntry") dTextEntry:SetText("Enter text here") dTextEntry.OnGetFocus = function() self:SetText("") -- Clear the text box for user input end
Output: Text entry clears when user clicks it to begin typing

Page Links


Special Pages


Wikis

?

Render Time: 23ms

Session 0
DB GetPage 3
Generate Html 0
SaveChanges 11
Render Body 0
Render Sidebar 6