Panel/SetPos

From Garry's Mod
Jump to: navigation, search
 Panel:SetPos( )

Description

Sets the position of the panel.

This will trigger PANEL:PerformLayout. You should avoid calling this function in PANEL:PerformLayout to avoid infinite loops.

NOTE

If you wish to position and re-size panels without much guesswork and have them look good on different screen resolutions, you may find Panel:Dock useful

Arguments

number posX

The x coordinate of the position.

Arguments

number posY

The y coordinate of the position.
Personal tools
Navigation