Focusing between lists...
#1
I am beating my head against the wall here...

This list gives focus to a hidden button/panel when you press the right arrow.

Code:
<control type="list" id="59">
        <posx>-10</posx>
        <posy>32</posy>
        <width>320</width>
        <height>520</height>
        <onleft>59</onleft>
        <onright>setfocus(78)</onright>
        <onup>9000</onup>
        <ondown>59</ondown>
        <focusposition>1</focusposition>
        <orientation>vertical</orientation>
        <scrolltime>200</scrolltime>
        <viewtype label="536">Bottom</viewtype>
        <pagecontrol>9000</pagecontrol>
        <visible allowhiddenfocus="true">Container.Content(Episodes)</visible>...

This is the group it gives focus to. Any direction sends you back to the other container.

Code:
<control type="group" id="136">
            <description>TV Episode Info Panel LEFT</description>
            <posy>464</posy>
            <visible>Control.HasFocus(78)</visible>
            
            <control type="button" id="78">
                <height>0</height>
                <width>0</width>
                <onleft>SetFocus(59)</onleft>
                <onright>setfocus(59)</onright>
                <onup>setfocus(59)</onup>
                <ondown>setfocus(59)</ondown>
                <visible allowhiddenfocus="true">control.hasfocus(78)</visible>
            </control>



This code works perfectly. Just as I wanted to.

SO, I took the visibility tag and "invisible button" and added them to the group that has my movie info. Copied exactly. I changed the button ID to 77, told it to focus on group 60 instead, and told group 60 to point back at 77 onright. Here's the code for group 60:

Code:
<control type="list" id="60">
        <posx>0</posx>
        <posy>34</posy>
        <width>300</width>
        <height>676</height>
        <onleft>Container.Refresh(videodb://1/1/)</onleft>
        <onright>setfocus(77)</onright>
        <onup>52</onup>
        <ondown>52</ondown>
        <scrolltime>200</scrolltime>
        <viewtype label="536">bottom</viewtype>
        <pagecontrol>9000</pagecontrol>
        <visible allowhiddenfocus="true">Container.Content(Movies)</visible>
        <itemlayout...

It would seem to me that this should work. It works fine for episodes, but breaks with movies. I've changed the coords of the group to make sure it wasn't just rendering offscreen or something. hell, I made it just plain visible and it shows up.

Also, debug log says it's giving focus back and forth between the two...the info panel just doesn't display...
Reply
#2
As usual...this can be disregarded/deleted. It works pretty well when you remember that you put the group that doesn't show up in another group that renders visible as long as control 60 has focus...
Reply

Logout Mark Read Team Forum Stats Members Help
Focusing between lists...0