View Single Post
04/05/14, 03:33 PM   #11
Wukar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 27
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:
  1. local function BBS_OnFocusLost(editbox, label)
  2.     label:SetHidden(editbox:GetText() ~= "")
  3. end
  4.  
  5. local function BBS_OnKeyUp(editbox, label)
  6.     label:SetHidden(editbox:GetText():len() > 0)
  7. end
  8.  
  9. editbox:SetHandler("OnKeyUp", function(self) BBS_OnKeyUp(self, label) end)
  10. editbox:SetHandler("OnFocusLost", function(self) BBS_OnFocusLost(self, label) end)
  Reply With Quote