Garry's Mod Wiki

DTextEntry:SetDisabled

  DTextEntry:SetDisabled( boolean disabled )

Description

We advise against using this. It may be changed or removed in a future update. Use Panel:SetEnabled instead.

Disables input on a DTextEntry and greys it out visually. This differs from DTextEntry:SetEditable which doesn't visually change the textbox.

Arguments

1 boolean disabled
Whether the textbox should be disabled