Panel.CopyHeight

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:CopyHeight( Panel )
Description:
Set a panel, to the same height as another panel
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.CopyHeight]Panel.CopyHeight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]




Examples

DescriptionChanges the myPanel height to the same height as otherPanel
Used onNewerClient.png
Code
myPanel:CopyHeight( otherPanel )
OutputmyPanel is now the same hieght as otherPanel. Everything else has stayed the same.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox