DFrame/SetSizable

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Documented DFrame method.)
 
Line 1: Line 1:
 
{{PanelFunc
 
{{PanelFunc
|Name=SetSizable
+
|Description=Sets whether or not the {{Type|DFrame}} can be resized by the user.
|Parent=DFrame
+
|Description=Sets whether or not the DFrame can be resized by the user.
+
  
 
This is achieved by clicking and dragging in the bottom right corner of the frame.
 
This is achieved by clicking and dragging in the bottom right corner of the frame.
 +
 +
You can set the minimum size using {{ClassFunction|DFrame|SetMinWidth}} and {{ClassFunction|DFrame|SetMinHeight}}.
 
}}
 
}}
 
{{Arg
 
{{Arg
|name=sizeable
 
 
|type=boolean
 
|type=boolean
 +
|name=sizeable
 
|desc=Whether the frame should be resizeable or not.
 
|desc=Whether the frame should be resizeable or not.
 
}}
 
}}

Revision as of 17:17, 7 January 2020

 DFrame:SetSizable( )

DescriptionPanelFunc

Sets whether or not the DFrame can be resized by the user.

This is achieved by clicking and dragging in the bottom right corner of the frame.

You can set the minimum size using DFrame:SetMinWidth and DFrame:SetMinHeight.

Arguments

boolean sizeable

Whether the frame should be resizeable or not.
Personal tools
Navigation