Fixed List Focus Position
#1
Quick question about a fixed list I'm working on and its initial focus position.

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...

Image


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...

Image


Any way to get the second method behaving like the first?
 
Reply
#2
It's all done to the time needed to generate the lists - if this takes longer than the focusing does then you get the result your seeing.

Have you tried dropping the dummy list and using Window(Home).Property(LatestMovie).1.Title, etc?
Reply
#3
That's how I was doing it initially but you don't get many options for info, for example you can't call the genre of a movie.
 
Reply
#4
How about adding the button separately as the onright action from the list?
Reply
#5
Could do but then I don't believe there is a way to limit the number of results from filing it with videodb://recentlyaddedmovies. It would just show them all making the button pointless, unless I'm wrong and you can set the number of results for dynamic content (I know you didn't used to be able to)?
 
Reply
#6
Code:
limit
Wink
Reply
#7
You little beauty Hitcher!

Just checked the Wiki again and it's there, can't believe I missed it, could have saved myself a lot more time :p

Just got to try and get the view more button working as a seperate item that looks like its part of the list now...
 
Reply
#8
Heh I would personally go with 7 static items in this case, last one being your button. Seems far easier to me.
My skins:

Amber
Quartz

Reply

Logout Mark Read Team Forum Stats Members Help
Fixed List Focus Position0