Garry's Mod Wiki

DTextEntry:SetEditable

  DTextEntry:SetEditable( boolean enabled )

Description

Disables Input on a DTextEntry. This differs from DTextEntry:SetDisabled - SetEditable will not affect the appearance of the textbox.

Arguments

1 boolean enabled
Whether the DTextEntry should be editable

Example

local TextEntry = vgui.Create( "DTextEntry", frame ) -- create the form as a child of frame TextEntry:SetPos( 25, 50 ) TextEntry:SetSize( 75, 85 ) TextEntry:SetText( "Sample String" ) TextEntry:SetEditable( false )