Panel.SetKeyboardInputEnabled

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:SetKeyboardInputEnabled( Boolean enable )
Description:
Enables or disables keyboard input for the panel. Both this casing and Panel:SetKeyBoardInputEnabled() will work.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.SetKeyboardInputEnabled]Panel.SetKeyboardInputEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionEnables keyboard input such as moving around while theres a frame with Panel.MakePopup function activated
Used onNewerClient.png
Code
// basic frame definition
cFrame = vgui.Create( "DFrame" )
cFrame:SetSize( 200,100 )
cFrame:SetPos( 50,50 )
cFrame:PostMessage( "SetTitle", "text", "cLabel Test" )
cFrame:MakePopup()
cFrame:SetKeyBoardInputEnabled() // here it is!
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox