Garry's Mod Wiki

Panel:GetChildPosition

  number, number Panel:GetChildPosition( Panel pnl )

Description

Gets a child object's position relative to this panel object. The number of levels is not relevant; the child may have many parents between itself and the object on which the method is called.

Arguments

1 Panel pnl
The panel to get the position of.

Returns

1 number
The horizontal (x) position of the child relative to this panel object.
2 number
The vertical (y) position of the child relative to this panel object.