Posts: 118
Joined: Mar 2012
Reputation:
1
echo
Senior Member
Posts: 118
Hi, is there a limitation with Container.HasNext for fixedlists? I can't seem to get it to work properly.
I would like to add "indicator arrows" for a fixed list to show that there are elements outside the visible area.
Container.HasPrevious works just as expected but Container.HasNext does not. When approaching the end of the list, the indicator does disappear when you reach the "final page" (as it should) but as soon as you continue down the list to the last few items, the indicator with Container.HasNext reappears and stays on. The fixedlist has 5 visible items with focusposition set to 1.
I hope I have explained it properly, otherwise I'll post the code if need be..
Posts: 118
Joined: Mar 2012
Reputation:
1
echo
Senior Member
Posts: 118
2013-12-09, 01:48
(This post was last modified: 2013-12-09, 01:49 by echo.)
I guess I am the only one with this problem....
Can someone at least tell me a skin which has similar indicator arrows so that I may check the code? Can't find them in the ones I've tested...
Posts: 797
Joined: Dec 2010
Reputation:
33
No sir, not alone - I'm trying to do the same thing (mostly with panels however).
A combination of Container(id).NumItems and Container(id).Position might be a way forward. If I can get this (or an alternative) to work, I will post the code.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
2013-12-09, 20:27
(This post was last modified: 2013-12-09, 20:27 by `Black.)
!IsEmpty(Container(id).ListItemNoWrap(offset).Label) could work. Offset should be 4 if you have 5 items with focusposition 1.
Posts: 797
Joined: Dec 2010
Reputation:
33
Thanks Black, Echo,
Trying to do something similar with grouplist controls (e.g. settingsCategory.xml). It seems Container(id).NumItems doesn't do much for grouplists - any ideas?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Will need a (simple) code example to allow reproduction if there is a bug. Ideally a change in confluence (perhaps in home?)
Posts: 118
Joined: Mar 2012
Reputation:
1
echo
Senior Member
Posts: 118
I don't think it can work that way....a grouplist isn't a Container as such (only list, wrap, fixed and panel are), so those "Container(id).NumItems" and similar don't work for them, only .HasFocus(id) is valid.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Thanks - fixed in b50a14dd2dc
Posts: 995
Joined: Apr 2009
Reputation:
60
nessus
Skilled Skinner
Posts: 995
I'd like to bump this please. Still not working in Beta 3.
Is it possible someone to confirm if this stays as it is in Gotham so i can search for another workaround ?
Cheers
Nessus