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 )

Page Links


Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 11
Render Body 0
Render Sidebar 6