Why doesn't my hiddenfocus work?
#1
I want to press "down" when the button has focus and have it make the list show up.

Everything in this code works fine until I add the "hiddenfocus" bit...then it just doesn't show up. I tried putting the list in a group and passing focus to the group, but that doesn't work either.

Also, the list ID is included in the views section of the window...

The button:

Code:
<control type="group" id="9010">
        <description>Video Menu</description>
        <posx>-9</posx>
        <posy>0</posy>
        <width>1280</width>
        <heigth>720</heigth>
        <defaultcontrol>1</defaultcontrol>
        <visible>container.content(movies) | container.content(moviegenres) | container.content(movietitles)</visible>
    
        <control type="button" id="1">
                <posx>9</posx>
                <posy>0</posy>
                <width>100</width>
                <height>34</height>
                <visible>true</visible>
                <colordiffuse>FFFFFFFF</colordiffuse>
                <texturenofocus>DropBack-f.png</texturenofocus>
                <texturefocus>menu-movies-f.png</texturefocus>
                <label>Genres</label>
                <textoffsetx>19</textoffsetx>
                <textoffsety>-1</textoffsety>
                <font>size24</font>
                <textcolor>FFFFFFFF</textcolor>
                <focusedcolor>ff000000</focusedcolor>
                <disabledcolor>80FFFFFF</disabledcolor>
                <onfocus></onfocus>
                <onup>9000</onup>
                <ondown>56</ondown>
                <onleft>6</onleft>
                <onright>2</onright>
            </control>
        
    </control>


The control I want to appear when I press "down":

Code:
<control type="list" id="56">
        <visible allowhiddenfocus="true">Control.HasFocus(56)</visible>
            <posx>6</posx>
            <posy>34</posy>
            <width>1280</width>
            <height>590</height>
            <onleft></onleft>
            <onright></onright>
            <onup>9010</onup>
            <ondown>56</ondown>
            
            <scrolltime>200</scrolltime>
            <focusedlayout height="30" width="350">
                
                <control type="label">
                    <control type="image">
                        <posx>0</posx>
                        <posy>3</posy>
                        <width>490</width>
                        <height>35</height>
                        <texture>dropback.png</texture>
                    </control>
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>370</width>
                    <height>30</height>
                    <font>Menufont</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <selectedcolor>FFFFFFFF</selectedcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[ListItem.Label]</label>
                </control>
            </focusedlayout>
            <itemlayout height="35" width="390">
                <control type="image">
                    <posx>0</posx>
                    <posy>3</posy>
                    <width>490</width>
                    <height>35</height>
                    <texture>dropback-f.png</texture>
                </control>
                <control type="label">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>370</width>
                    <height>30</height>
                    <font>Menufont</font>
                    <textcolor>FFFFFFFF</textcolor>
                    <selectedcolor>FFFFFFFF</selectedcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <info>ListItem.Label</info>
                </control>
                            
            </itemlayout>
            
        </control>

If anybody can explain to me why I keep breaking stuff when I try to invoke hiddenfocus, I'd really appreaciate it. I know how it should work...but I don't know why it doesn't...
Reply
#2
hiddenfocus doesn't have to go in the button control does it?
Reply
#3
I don't think so. I copied the list shown above from another section where the exact same function was working. The only difference is the ID #, dimensions, and that this list is dynamically populated, whereas the other one has a <content> set.
Reply
#4
Probably because the visibility of lists and panels is controlled by xbmc and not the skin. And the view needs to refresh in order for the control to say its visible ?

A better working solution would maybe be make it 100 transparent with an animation instead of using visible
Reply
#5
Jezz_X Wrote:Probably because the visibility of lists and panels is controlled by xbmc and not the skin. And the view needs to refresh in order for the control to say its visible ?

A better working solution would maybe be make it 100 transparent with an animation instead of using visible

Conditional visibilty tags still work tho...I have a (series of) system populated lists who's visiblity is controlled by the container.content(Genre)/container.content(Albums). That's what strikes me as really odd about this. Well, actually, I use a container.refresh() to control what's displayed in the lists, so...ah. I see.

So the visibility is evaluated whenever the container is refreshed?
Reply
#6
Correct.
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
#7
jmarshall Wrote:Correct.

That puts a lot of things in perspective. I've got one more question, but your PM is full. You should empty it so I don't need to start another thread for another one-liner. Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
Why doesn't my hiddenfocus work?0