Garry's Mod Wiki

Panel:SetSelectable

  Panel:SetSelectable( boolean selectable )

Description

Sets whether the panel object can be selected or not (like icons in the Spawn Menu, holding ⇧ shift). If enabled, this will affect the function of a DButton whilst ⇧ shift is pressed. Panel:SetSelected can be used to select/deselect the object.

Arguments

1 boolean selectable
Whether the panel object should be selectable or not.