Garry's Mod Wiki

Panel:SetEnabled

  Panel:SetEnabled( boolean enable )

Description

Sets the enabled state of a disable-able panel object, such as a DButton or DTextEntry.

See Panel:IsEnabled for a function that retrieves the "enabled" state of a panel.

Arguments

1 boolean enable
Whether to enable or disable the panel object.