Hey,
This is a really basic question but I don't find how to add some text to a frame.
I have a frame with 3 editBox
Lua Code:
local function createEditBox( nomEditBox, frameParent, posX, posY, text, longueur)
local nomEditBox = CreateFrame("EditBox", tostring( nomEditBox ), frameParent, "InputBoxTemplate")
nomEditBox:SetPoint("CENTER", posX + decallageX, posY + decallageY)
nomEditBox:SetText(text)
nomEditBox:SetFrameStrata("HIGH")
nomEditBox:SetSize(longueur, 1)
nomEditBox:SetScript("OnEscapePressed", function(self)
local frame = frameParent:GetParent()
local parent = frame:GetParent()
parent:Hide()
end)
return nomEditBox
end
editBox1 = createEditBox(self, customWeightPanel, 50, 90, "Box1", 250)
editBox2 = createEditBox(self, customWeightPanel, 50, 60, "Box2", 250)
editBox3 = createEditBox(self, customWeightPanel, 50, 30, "Box3", 250)
And I would have a text at the right of the edit box to describe what I want to put inside
Thanks