Hello, somebody can say me the error? I need print the text typed in a editbox when press the respective button.
Lua Code:
Gui.func3frame.input = CreateFrame("EditBox", "same", Gui.func3frame, 'InputBoxTemplate')
Gui.func3frame.input:SetSize(200,22)
Gui.func3frame.input:SetAutoFocus(false)
Gui.func3frame.input:SetMaxLetters(30)
Gui.func3frame.input:SetPoint("CENTER", -65, 30)
Gui.func3frame.input:SetScript('OnEnterPressed', function(arg3)
local arg3 = self:GetText()
end)
--
Gui.func3frame.add = CreateFrame("Button", "same", Gui.func3frame, "UIPanelButtonTemplate")
Gui.func3frame.add:SetSize(50,22)
Gui.func3frame.add:SetPoint("CENTER", 70, 30)
Gui.func3frame.add:SetText("Add")
Gui.func3frame.add:SetScript("OnClick", function(arg3)
print("added: " ..arg3)
end)
Thanks, and sorry! Maybe I'm asking too much.