Posts: 209
Joined: Jan 2011
Reputation:
0
2011-09-22, 18:14
I'm sure this should be pretty simple but at the moment it has me beat.
I'm currently building a horizontal wraplist and want to display an image just above it when a certain item of the list has focus. The wraplist is control 9000 and contains items 1-9.
I can't figure out the visibility code I need. Control.HasFocus(9000) makes it permanently visible, obviously, so how do I specify an item within that control?
Posts: 1,617
Joined: Jul 2009
Reputation:
11
Container(9000).HasFocus(1)
To learn more, click
here.
Posts: 209
Joined: Jan 2011
Reputation:
0
2011-09-23, 11:16
(This post was last modified: 2011-09-23, 11:23 by TheStretchedElf.)
I'm now looking to display a menu item between certain dates. The wiki seems to suggest
stringcompare(System.Date(startDate,endDate))
as a visibility condition with date format MM-DD but I can't get it to work. Can someone point me in the right direction please.
I've tried
stringcompare(System.Date(09-22,10-24))
which should make the item visible from 22 September (yesterday) until 24 October, but the item isn't visible.
edit: ignore me, the stringcompare was redundant, I'd probably assumed it was needed because I've been doing string compares all morning.
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
why do You use stringcompare?
just <visible>System.Date(09-22,10-24)</visible>
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
My previous forum/trac nickname: grajen3