Garry's Mod Wiki

Garry's Mod Wiki

  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 )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...