2013-05-18, 12:33
Hi all.
I'm currently working on a skin and would like to concatenate 2 (or more) vertical lists. So far I've been able to work it out almost correctly, but I have one last problem: when I move from the list above to the one below using the "down" key the highlighted item is not the first of the list below, but the first of the currently selected page of the list below (so, if I'm seeing items from 11 to 20, it will go to position 11 instead of 0). Strange enough, the other way around (thus going "up" from the list above to highlight the last item of the list below) works like a charm.
In order to implement this behavior I'm using the built-in function SetFocus() that I have seen in other topics being described as setting the focus of the item indicated in the currently visible page of the list. Now, this is coherent with the "wrong" behavior I'm getting, but not with the "right" one. Furthermore, using the trick of inserting a second invisible list with the same id in order to screw up xbmc internals about remembering the last position seems not to work in my case.
Any ideas on how I could solve this problem? I even tried with Control.Move() and Control.Message(), but I can't seem to find a solution with those either.
Thank you! =)
I'm currently working on a skin and would like to concatenate 2 (or more) vertical lists. So far I've been able to work it out almost correctly, but I have one last problem: when I move from the list above to the one below using the "down" key the highlighted item is not the first of the list below, but the first of the currently selected page of the list below (so, if I'm seeing items from 11 to 20, it will go to position 11 instead of 0). Strange enough, the other way around (thus going "up" from the list above to highlight the last item of the list below) works like a charm.
In order to implement this behavior I'm using the built-in function SetFocus() that I have seen in other topics being described as setting the focus of the item indicated in the currently visible page of the list. Now, this is coherent with the "wrong" behavior I'm getting, but not with the "right" one. Furthermore, using the trick of inserting a second invisible list with the same id in order to screw up xbmc internals about remembering the last position seems not to work in my case.
Any ideas on how I could solve this problem? I even tried with Control.Move() and Control.Message(), but I can't seem to find a solution with those either.
Thank you! =)