Garry's Mod Wiki

DFrame:SetSizable

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

Special Pages


Wikis

?

Render Time: 57ms

DB GetPage 38
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 7