dtextentry not working

Hey, im trying to use a dtextentry with this code:

f = vgui.Create(“DFrame”)
f:SetSize(500,500)
f:Center()

f.t = vgui.Create(“DTextEntry”,f)
f.t:SetSize(100,20)
f.t:SetPos(100,240)

Yet it doesnt work… any ideas? (setting it to t and not f.t doesnt work either)



local Main = vgui.Create('DFrame')
Main:SetSize(388, 123)
Main:Center()
Main:SetTitle('What you want here ..')
Main:SetSizable(false)
Main:SetDeleteOnClose(false)
Main:MakePopup()

local Text = vgui.Create('DTextEntry', 'Main')
Text:SetSize(296, 20)
Text:SetPos(164, 146)
Text:SetText('Insert your default text here :P')
Text.OnEnter = function() end

local Button = vgui.Create('DButton', 'Main')
Button:SetSize(158, 25)
Button:SetPos(231, 178)
Button:SetText('Simple button')
Button.DoClick = function() RunConsoleCommand("say", Text:GetValue())
end


Work ? :smiley:

thanks - forgot to add MakePopup()!