Grouplist of buttons <ondown> to more buttons
#1
First section is my Home Menu, then the <ondown> is the Recent added type sections

PHP Code:
<control type="grouplist" id="9000">    
        <
onleft></onleft>
        <
onright></onright>
        <
onup>3001</onup>
        <
ondown>90050</ondown>
        <
orientation>horizontal</orientation>
        <
control type="button" id="101">
            <
description>music</description>
            <
width>1</width>
            <
height>1</height>
            <
label>2</label>
            <
textcolor>xxxxx</textcolor>
            <
onclick>XBMC.ActivateWindow(MyMusic,return)</onclick>
            <
visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
        </
control>
        <
control type="button" id="103">
            <
description>movies</description>
            <
width>1</width>
            <
height>1</height>
            <
label>$LOCALIZE[20342]</label>
            <
textcolor>xxxxx</textcolor>
            <
onclick>XBMC.ActivateWindow(MyVideoLibrary,movietitles,return)</onclick>
            <
visible>!Skin.HasSetting(HomeMenuNoMoviesButton)</visible>
        </
control>
        <
control type="button" id="104">
            <
description>hdmovies</description>
            <
width>1</width>
            <
height>1</height>
            <
label>$LOCALIZE[30000]</label>
            <
textcolor>xxxxx</textcolor>
            <
onclick>XBMC.ActivateWindow(10025,special://skin/playlists/HDMovies.xsp,return)</onclick>
            
<visible>!Skin.HasSetting(HomeMenuNoHDMoviesButton)</visible>
        </
control>
etc... 

Which references:

PHP Code:
<control type="group" id="90050">
        <
control type="button">
            <
description>movies</description>
            <
width>1</width>
            <
height>1</height>
            <
onfocus>SetFocus(8000)</onfocus>
            <
font>-</font>
            <
visible>Control.HasFocus(103) | Control.HasFocus(104)</visible>
        </
control>
        <
control type="button">
            <
description>movies</description>
            <
width>1</width>
            <
height>1</height>
            <
onfocus>SetFocus(8001)</onfocus>
            <
font>-</font>
            <
visible>Control.HasFocus(105)</visible>
        </
control>
    </
control

This setup worked when I was using a container and hard coded <ondown>'s for the each and every button but I need a <grouplist> as I let users uncheck videos/movies/pictures/etc so I need the auto navigation and I'm using the auto-sizing GetLabel() trickery thats why I'm not using a Container...Thx
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#2
Check what is in the <default> for button controls - it doesn't have a <ondown> there does it?
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
#3
Looks like switching from <ondown> from fake button's that triggers recent added sections to putting all my recent added code into a group and give that group an ID and then use that group's ID as my <ondown> works instead...
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply

Logout Mark Read Team Forum Stats Members Help
Grouplist of buttons <ondown> to more buttons0