Panel.CopyBounds

From GMod Wiki

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




Examples

DescriptionChanges the myPanel to the same position and size as otherPanel
Used onNewerClient.png
Code
myPanel:CopyBounds( otherPanel )
OutputmyPanel is now the same position and size as otherPanel. Everything else has stayed the same.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox