Now i am stuck with setting appropriate handlers. Is there a list of valid and fireing events for controls?
OnKeyup as well as
Onclicked or
OnFocus is not working.
lua Code:
local function BBS_OnFocusLost(editbox, label)
label:SetHidden(editbox:GetText() ~= "")
end
local function BBS_OnKeyUp(editbox, label)
label:SetHidden(editbox:GetText():len() > 0)
end
editbox:SetHandler("OnKeyUp", function(self) BBS_OnKeyUp(self, label) end)
editbox:SetHandler("OnFocusLost", function(self) BBS_OnFocusLost(self, label) end)