grouplist auto scrolling support?
#1
Hi All,

I'm having a bit of a problem that I would really appreciate some help.

I am trying to use the grouplist Crontrol for an addon skin:

http://wiki.xbmc.org/?title=Group_List_Control

However I can not get it to autoscroll - it just sits there like a static control. My XML file is viewable here:

https://robwebset.googlecode.com/svn-his...deshow.xml

(There is only one grouplist, so a quick search will show it).

I have the "scrolltime" set as detailed in the wiki, but still nothing.

I would be very grateful of any help!

Thanks

Rob
P.S. Testing on Frodo at the moment.
Reply
#2
Scrolltime is used when scrolling through the grouplist, you're thinking of autoscroll but that's a Gotham feature and for lists only.
Reply
#3
After glancing over your code, I would suggest using an actual list control instead of a grouplist control. This would make your code more maintainable, but also allow you to use the <autoscroll> tag Hitcher was talking about.

Relevant links: List Container, Static List Content


Your content tag would look something like this:

Code:
<content>
    <item id="1">
        <visible>!IsEmpty(Window.Property(ArtistSlideshow.1.AlbumName))</visible>
        <label>$INFO[Window.Property(ArtistSlideshow.1.AlbumName)]</label>
        <thumb>$INFO[Window.Property(ArtistSlideshow.1.AlbumThumb)]</thumb>
    </item>
    <item id="2">
        <visible>!IsEmpty(Window.Property(ArtistSlideshow.2.AlbumName))</visible>
        <label>$INFO[Window.Property(ArtistSlideshow.2.AlbumName)]</label>
        <thumb>$INFO[Window.Property(ArtistSlideshow.2.AlbumThumb)]</thumb>
    </item>
</content>
Image
Reply
#4
Thank you for taking the time to post a reply - I have tried the list option, but it doesn't seem to display anything (I'm not very good at this skin stuff), I have added a basic test - and it doesn't show anything (Unfortunately I can't get logging to work for skin display to see if there are any errors).

Code:
        <control type="list" id="1345">
            <posx>75</posx>
            <posy>285</posy>
            <width>490</width>
            <height>390</height>
            <itemlayout height="60" width="300">
            </itemlayout>
            <focusedlayout height="60" width="300">
            </focusedlayout>
            <content>
                <item id="1">
                    <visible>true</visible>
                    <label>fred</label>
                </item>
                <item id="2">
                    <visible>true</visible>
                    <label>wilma</label>
                </item>
            </content>
        </control>

Does this sort of thing look OK to you - am I doing something stupid?

Thanks

Rob
Reply
#5
Items need an <onclick>-</onclick> control in them to work.
Reply
#6
Thanks for the suggestion, but still nothing showing for me - I now have:

Code:
        <control type="list" id="1345">
            <posx>75</posx>
            <posy>285</posy>
            <width>490</width>
            <height>390</height>
            <itemlayout height="60" width="300">
            </itemlayout>
            <focusedlayout height="60" width="300">
            </focusedlayout>
            <content>
                <item id="1">
                    <visible>true</visible>
                    <label>fred</label>
                    <onclick>-</onclick>
                    <icon>-</icon>
                    <thumb>-</thumb>
                </item>
                <item id="2">
                    <visible>true</visible>
                    <label>wilma</label>
                    <onclick>-</onclick>
                    <icon>-</icon>
                    <thumb>-</thumb>
                </item>
            </content>
        </control>

BTW: Tried both with and without the itemlayout and focusedlayout elements
Reply
#7
Is that the exact code or have you removed the label controls for itemlayout and focusedlayout?
Reply
#8
That is the exact code - but I have also tried it without the elements itemlayout and focusedlayout all together.
Reply
#9
You need to add a label control to both of them to show anything.

http://wiki.xbmc.org/index.php?title=List_Container
Reply
#10
That last comment gave me an idea - just tested - it looks like itemlayout and focusedlayout need to both have something in them ... and for it to be marked as visibale!

Does that sound right to you?

Thanks

Rob

Edit: Sorry typed this before I saw your last post!
Reply
#11
The controls in the itemlayout and focusedlayout don't need to be marked visible explicitly, they are so by default. Also, you don't need to define the width of the layouts in lists if you're using <orientation>vertical</orientation> and you don't need to define the height if you're using <orientation>horizontal</orientation>.

Anyway, is it working now?
Image
Reply
#12
Hmm, I've now managed to get the label displayed - but the image isn't showing up - I have tried both icon and thumb - neither seem to display. (it's of the format http:// ....../.....jpg)

Rob
Reply
#13
Have you added the image control to itemlayout and focusedlayout?
Reply
#14
Ah!! ... I just got it ... the penny have finally dropped.

You specify the "specification of what you want things to look like in the itemlayout" and then you populate it with the <content>.

Now it makes sense!

Thank you both for all your help - I will have a propper play with it now I understand a little bit more on how it is supposed to work!

Thanks

Rob
Reply

Logout Mark Read Team Forum Stats Members Help
grouplist auto scrolling support?0