List Container Static Content
#1
Hello,

I am trying to get the behavior of the old button scrollers using the list container with static content. Are there any examples of this? From the manual I came up with the following code that does not work. It displays nothing.

Code:
<control type="list" id="9000">
    <viewtype label="menu">list</viewtype>
    <posx>700</posx>
    <posy>160</posy>
    <orientation>vertical</orientation>
    <scrolltime>200</scrolltime>

    <content>
        <item id="1">
            <label>movies</label>
        <onclick>ActivateWindow(MyVideos,Movies)</onclick>
        </item>
        <item id="2">
           <label>tv</label>
           <onclick>ActivateWindow(MyVideos,TV)</onclick>
    </item>
    <item id="3">
            <label>games</label>
            <onclick>ActivateWindow(MyPrograms,Games)</onclick>
    </item>
    </content>
    <itemlayout height="50">
    <control type="label">
        <label>$INFO[ListItem.Label]</label>
        <textcolor>mint-dark</textcolor>
        </control>
    </itemlayout>
    <focusedlayout height="50">
    <control type="label">
        <label>$INFO[ListItem.Label]</label>
            <textcolor>mint</textcolor>
        </control>
    </focusedlayout>
</control>

Thanks,
JB
Reply
#2
what folder is this in?

<posx>700</posx>
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
It's in 720p.
Reply
#4
I would suggest you probably need a width and hight for it so the skin engine knows how big and how much to draw
Reply
#5
Yep - you'll need at least a width for the itemlayout and focusedlayout, and possibly some posx and posy stuff for the labels within them (depending on what's in defaults.xml).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
That was it. It was a combination of no width/height on the list control and no width/height on the controls in the itemlayout and focusedlayout. Thanks for your help!

JB
Reply
#7
One thing to note. If you set the itemlayout height and the width at the same time it acts weird ( cuts off the text ). Only do height if you have a vertical list and only do width if you have a horizontal list.
Reply

Logout Mark Read Team Forum Stats Members Help
List Container Static Content0