View Single Post
05/05/14, 04:21 AM   #4
BadVolt
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 74
Originally Posted by DerVagabund View Post
Hm, thanks for the reply, that answers most of my questions

But about the update, I create my own scrolllist and then I update all containing controls. But when I do this, it seems that the items in the control are not updated correctly. When I close the window and reopen it, then all changes are applied. Do I need to reload the scrolllist or is there a function to tell it to refresh its contents?

edit: ah, how to make a top level window capture key presses (again, in pure lua, not xml - in xml I found a way)?
Hm. Don't know about scrolls. Never used them

Same as for all others.
Lua Code:
  1. SomeRef:SetHandler("OnKeyUp" , function(self, key, ctrl, alt, shift, command)
  2. -- your action
  3. end)

Events:
OnKeyDown
OnKeyUp

Arguments:
self, key, ctrl, alt, shift, command,...
  Reply With Quote