2009-02-04, 00:17
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:
The control I want to appear when I press "down":
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...
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...