Panel.AlignTop
From GMod Wiki
| Function | |
| Syntax | Panel:AlignTop( Integer offset ) |
| Description: | |
| Aligns a panel to the top of it's parent with a specified offset. | |
| Returns: | nil |
| In Object: | Panel |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.AlignTop]Panel.AlignTop [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Aligns a frame 10 pixels from the top of the screen. |
|---|---|
| Used on | |
| Code | local panel = vgui.Create("DFrame"); panel:SetSize( 512, 512 ); panel:MakePopup(); panel:AlignTop( 10 ); |
| Output | N/A |