Garry's Mod Wiki

Panel:GetSelectedChildren

  table Panel:GetSelectedChildren()

Description

Returns a table of all children of the panel object that are selected. This is recursive, and the returned table will include tables for any child objects that also have children. This means that not all first-level members in the returned table will be of type Panel.

Returns

1 table
A table of any child objects that are selected, including tables for children of the child objects (These tables may also contain table members, as the method is recursive).