Panel.AlignRight

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:AlignRight( Integer offset )
Description:
Aligns a panel to the right of it's parent with a specified offset.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.AlignRight]Panel.AlignRight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAligns a frame 10 pixels from the right of the screen.
Used onNewerClient.png
Code
local panel = vgui.Create("DFrame");
panel:SetSize( 512, 512 )
panel:MakePopup()
panel:AlignRight( 10 )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox