Garry's Mod Wiki

Garry's Mod Wiki

  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() )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...