DTextEntry.RequestFocus

From GMod Wiki

Jump to: navigation, search
Function
Syntax DTextEntry:RequestFocus( )
Where is this used?
Description:
Attempts to obtain the focus for a text entry.
Returns: nil
Part of Library: DTextEntry
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DTextEntry.RequestFocus]DTextEntry.RequestFocus [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionA text entry requests the focus.
Used onNewerClient.png
Code
// parent = pre-defined panel
TextEntry = vgui.Create("DTextEntry", parent)
TextEntry:RequestFocus()
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox