2015-02-12, 20:39
Quick question about a fixed list I'm working on and its initial focus position.
I have the following fixed list...
Now depending on the content I use it is loading the list focused on different items.
Loads it how I ultimately want it, with the first item in the list being focused...
However I only want to show 6 latest movies and a 7th item in the list is a button to view more, so I have created a dummy list to load the content...
and then added the following to the content of the original list...
However now when the list loads it automatically focuses on the second item in the list, rather than the first...
Any way to get the second method behaving like the first?
I have the following fixed list...
PHP Code:
<control type="fixedlist" id="8000">
<left>235</left>
<top>360</top>
<width>1600</width>
<height>400</height>
<onleft>9000</onleft>
<onright>8000</onright>
<onup>9000</onup>
<ondown>9000</ondown>
<onback>9000</onback>
<viewtype label="535">list</viewtype>
<pagecontrol>-</pagecontrol>
<scrolltime>350</scrolltime>
<orientation>Horizontal</orientation>
<focusposition>1</focusposition>
<movement>0</movement>
Now depending on the content I use it is loading the list focused on different items.
PHP Code:
<content>videodb://recentlyaddedmovies/</content>
Loads it how I ultimately want it, with the first item in the list being focused...
However I only want to show 6 latest movies and a 7th item in the list is a button to view more, so I have created a dummy list to load the content...
PHP Code:
<control type="list" id="1000"> <!--recently added movies-->
<content target="video">videodb://recentlyaddedmovies/</content>
</control>
and then added the following to the content of the original list...
PHP Code:
<content>
<item id="1" description="movie 0">
<label>$INFO[Container(1000).ListItem(0).Label]</label>
<thumb>$INFO[Container(1000).ListItem(0).Thumb]</thumb>
<property name="fanart">$INFO[Container(1000).ListItem(0).Property(Fanart_Image)]</property>
<property name="rating">$INFO[Container(1000).ListItem(0).Rating]</property>
<property name="year">$INFO[Container(1000).ListItem(0).Year]</property>
<property name="duration">$INFO[Container(1000).ListItem(0).Duration]</property>
<property name="genre">$INFO[Container(1000).ListItem(0).Genre]</property>
<property name="plot">$INFO[Container(1000).ListItem(0).Plot]</property>
<onclick>PlayMedia($INFO[Container(1000).ListItem(0).FileNameAndPath])</onclick>
</item>
<item id="2" description="movie 1">
<label>$INFO[Container(1000).ListItem(1).Label]</label>
<thumb>$INFO[Container(1000).ListItem(1).Thumb]</thumb>
<property name="fanart">$INFO[Container(1000).ListItem(1).Property(Fanart_Image)]</property>
<property name="rating">$INFO[Container(1000).ListItem(1).Rating]</property>
<property name="year">$INFO[Container(1000).ListItem(1).Year]</property>
<property name="duration">$INFO[Container(1000).ListItem(1).Duration]</property>
<property name="genre">$INFO[Container(1000).ListItem(1).Genre]</property>
<property name="plot">$INFO[Container(1000).ListItem(1).Plot]</property>
<onclick>PlayMedia($INFO[Container(1000).ListItem(1).FileNameAndPath])</onclick>
</item>
However now when the list loads it automatically focuses on the second item in the list, rather than the first...
Any way to get the second method behaving like the first?