Panel/SetMinimumSize

From Garry's Mod
Jump to: navigation, search
 Panel:SetMinimumSize( )

Contents

Description

Sets the minimum dimensions of the panel or object.

You can restrict either or both values.

Calling the function without arguments will remove the minimum size.

Arguments

number minW=nil

The minimum width of the object.

Arguments

number minH=nil

The minimum height of the object.

Examples

Example

Restricting height but not width

local frame = vgui.Create( "DFrame" )
frame:SetSize( 800, 600 )
frame:SetSizable( true )
frame:SetMinimumSize( nil, 300 )
frame:MakePopup()


Personal tools
Navigation