Panel.SetParent
From GMod Wiki
Function | |
Syntax | Panel:SetParent( Panel parent ) |
Description: | |
Sets the parent of the panel. The panel will move relative to it's parent. | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.SetParent]Panel.SetParent [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- If a panel is parented to another object, it is considered "inside" that panel. If a child object overflows it's parent object, it will just be clipped off - that is, the part that overflows won't be shown.
- The position of the panel is relative to it's parent object - so moving it to 0,0 moves it to 0,0 on it's parent panel, not 0,0 on the screen.
See Also
- N/A