Garry's Mod Wiki

DFrame:SetSizable

  DFrame:SetSizable( boolean sizeable )

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.

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

Arguments

1 boolean sizeable
Whether the frame should be resizeable or not.

Example

A snippet of code that makes a frame resizable and sets the minimum size to its current size.

frame:SetSizable( true ) frame:SetMinWidth( frame:GetWide() ) frame:SetMinHeight( frame:GetTall() )