DFrame.GetDraggable

From GMod Wiki

Jump to: navigation, search
Function
Syntax DFrame:GetDraggable( )
Description:
Returns the draggable state
Returns: Boolean
In Object: DFrame
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DFrame.GetDraggable]DFrame.GetDraggable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionReturn is the panel draggable.
Used onNewerClient.png
Code
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 200, 150 )
DermaPanel:SetTitle( "Testing Derma Stuff" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
 
print( DermaPanel:GetDraggable() ) 
OutputPrints "true" into console, if SetDraggable is true.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox