DTextEntry/SetEditable

From Garry's Mod
Jump to: navigation, search
 DTextEntry:SetEditable( )

Contents

DescriptionPanelFunc

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

Arguments

boolean enabled

Whether the DTextEntry should be editable

Examples

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)


Personal tools
Navigation