Panel.SetKeyboardInputEnabled
From GMod Wiki
(Redirected from Panel.SetKeyBoardInputEnabled)
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.SetKeyboardInputEnabled]Panel.SetKeyboardInputEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Enables keyboard input such as moving around while theres a frame with Panel.MakePopup function activated |
---|---|
Used on | |
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! |
Output | N/A |