Posts: 2
Joined: May 2007
Reputation:
0
Is there any way to return multiple selected items in a control list? I'm looking for something similar to what can be done in the XBMC file manager where you can select several non-contiguous items by clicking the Y button on the controller.
Thanks in advance.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
to highlight them you would need some trickery. maybe some separate image controls to overlay on top. then keep track of the marked items from the onAction() event.
It can be done, but the control itself does not support it.
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
Actually wouldnt you have to know the current scroll value to calculate the absolute screen position? I dont think there is a way to get that.
Really there should just be a color field on ListItem.
Posts: 2,321
Joined: Sep 2006
Reputation:
309
you could use a thumb image to keep track of what has been selected.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
The listitems have a selected bool on them already, but I guess it isn't exposed to python?
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
Thanks,
I have that done, but I want to add an IsSelected() also.
Should I follow python and call it getSelected() or name it what the listitem functions is isSelected()?
Edit: I'll make it isSelected() to match.