Panel.CopyWidth

From GMod Wiki

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




Examples

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


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox