ControlList onchange?
#1
Hi there,

Is there some sort of method like an onChange methode for a ControlList? I want some function to be executed when I am traversing a ContrilList (scrolling through, but not selecting) but I cannot get it to work at the moment.

Perhaps the solution is very straight forward, but my knowledge on scripting is still on NOOB level (but increasing)
Reply
#2
Here an example of code you can use in your onAction() function..which I think is what your looking for..

Code:
if self.getFocus() == self.mylistcontrol      :
    tlab1   =   self.mylistcontrol.getSelectedItem().getLabel()
    tlab2   =   self.mylistcontrol.getSelectedItem().getLabel2()
    tnum   =   self.mylistcontrol.getSelectedPosition()
    if self.LastId != tnum:
          self.LastId == tnum
          ## New record in list selected...
else :
   self.LastId = -1
Server: FreeNas 9 NAS: 6*3TB - Kodi Sql Database
Kodi Systems: Nvidia Shield Pro, G-Box Q (OpenElec), RikoMagic MK802 IV[
Skin: reFocus
Reply
#3
Thanks for the help. I solved the problem. The result (if you are interested) can be downloaded here:
http://www.rieter.net/uitzendinggemist/index.php

It's Dutch Uitzendinggemist Streaming script.
Reply
#4
or you do an Anaction for Up and Down button presses, then see if list has focus, and if so then update text box or whatever it is.
Reply

Logout Mark Read Team Forum Stats Members Help
ControlList onchange?0