DFrame.SetDraggable

From GMod Wiki

Jump to: navigation, search
Function
Syntax DFrame:SetDraggable( Boolean drag )
Description:
Enables or Disables the draggability of the frame
Returns: nil
In Object: DFrame
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DFrame.SetDraggable]DFrame.SetDraggable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreate a frame. Disable dragging
Used onNewerClient.png
Code
 
myParent = vgui.Create("DFrame")
myParent:SetTall(480)
myParent:SetWide(640)
myParent:SetDraggable(false)
myParent:Center()
myParent:MakePopup()
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox