Thread Tools Display Modes
08/26/15, 03:14 PM   #1
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
control:SetHandler ???

So I don't understand how this works:

Code:
  local fn = function() self:UpdateFilterLabel() end
  filterBar:SetHandler("OnValueChanged", fn)
  local fn_out = filterBar:GetHandler("OnValueChanged") 

  assert(fn_out ~= nil)
  assert(fn == fn_out)
Both assert will trigger. I.E fn_out is nil. But I just set it!!! Does SetHandler only take certain well know strings that are defined per control?
  Reply With Quote
08/26/15, 04:08 PM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Lodur View Post
Does SetHandler only take certain well know strings that are defined per control?
Yes. They're listed as Child: OnSomething in ESOUIDocumentationP#.txt
  Reply With Quote
08/26/15, 10:05 PM   #3
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
Thanks. I can stop banging my head down that road now.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » control:SetHandler ???


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off