DFrame.SetScreenLock

From GMod Wiki

Jump to: navigation, search
Function
Syntax DFrame:SetScreenLock( Boolean lock )
Description:
Enables whether or not the frame can be moved off screen.
Returns: nil
In Object: DFrame
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DFrame.SetScreenLock]DFrame.SetScreenLock [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreate a frame. Enable the screen lock.
Used onNewerClient.png
Code
 
myParent = vgui.Create("DFrame")
myParent:SetTall(480)
myParent:SetWide(640)
myParent:SetScreenLock(true)
myParent:Center()
myParent:MakePopup()
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox