Panel.SetSize

From GMod Wiki

(Redirected from DProgressBar.SetSize)
Jump to: navigation, search
Function
Syntax Panel:SetSize( Number width, Number height )
Description:
Sets the size of the panel.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.SetSize]Panel.SetSize [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionWill set the size of your Frame to as wide as the first argument and tall as the second argument.
Used onNewerClient.png
Code
MyParent:SetSize( 500, 500 ) --MyParent is a Frame
OutputSets height and width of panel to 500.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox