Posts: 17,390
Joined: Aug 2007
Reputation:
584
Hitcher
Team-Kodi Member
Posts: 17,390
I want to do something different with the group 3 stuff and would really like to be able to get the labels but Control.GetLabel(-100) doesn't return anything.
Is there a way to retrieve these controls?
ie ControlGroup(3).GetLabel(-100)
Or am I just going to have to revert to showing the actual strings with visible conditions?
Thanks.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
What do you want to achieve exactly? I also tried to get the label of the group but it seems impossible.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Well, you don't know how many there are in each category, so even if you could get them (which I presume you probably can) you'd need to know how many there are anyway, though I guess you could check for empty labels or something.
Control.GetLabel(-100) is what you want - not sure whether it'll go through or not though!
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Yeah, that's exactly the issue.
Not sure how to best handle this - I'm not sure if a container can give everything needed to operate things. Will ponder.
Cheers,
Jonathan
Posts: 17,390
Joined: Aug 2007
Reputation:
584
Hitcher
Team-Kodi Member
Posts: 17,390
Update: I've managed to by-pass the hard-coded default control using <onload>Control.SetFocus(7000)</onload> so my wraplist gets focus and I've manually filled the labels because GetLabel doesn't work but I've now stumbled upon another problem - I can't get the wraplist to control the grouplist and change the sections.
Neither Control.Move or Control.Message work.
Ideas?
Thanks.
Posts: 3,956
Joined: Dec 2008
Reputation:
62
2012-03-23, 19:51
(This post was last modified: 2012-03-23, 19:53 by pecinko.)
Use grouplist for nav and send control.move to wraplist? Hide grouplist off screen or with fade anim.
Posts: 17,390
Joined: Aug 2007
Reputation:
584
Hitcher
Team-Kodi Member
Posts: 17,390
Already tried that but the grouplist can't/wont send them.
Posts: 17,390
Joined: Aug 2007
Reputation:
584
Hitcher
Team-Kodi Member
Posts: 17,390
Thanks, I'll give it a go.
Posts: 17,390
Joined: Aug 2007
Reputation:
584
Hitcher
Team-Kodi Member
Posts: 17,390
Why do we need a script to move the grouplist when Control.Move should do the job?
Thanks.